Skip to content

fix: uncomment zip creation step and correct syntax for artifact name… #6

fix: uncomment zip creation step and correct syntax for artifact name…

fix: uncomment zip creation step and correct syntax for artifact name… #6

Workflow file for this run

name: Release

Check failure on line 1 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yaml

Invalid workflow file

(Line: 51, Col: 17): Unrecognized named-value: 'TAG_VERSION'. Located at position 1 within expression: TAG_VERSION
on:
workflow_dispatch:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set env vars
run: |
echo "TAG_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
echo "creating tag ${TAG_VERSION}"
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.25
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '18'
- name: Install Task
uses: arduino/setup-task@v2
- name: Scratch init
run: |
task scratch:init
- name: Create build
run: |
task app:build
# - name: Create zip
# run: |
# task app:zip
- name: Upload artifacts
uses: actions/upload-artifact@v5
with:
name: scratch-arduino-app-${{TAG_VERSION}}
path: |
build/*.zip
if-no-files-found: error