Skip to content

fix: update release workflow to create zip and upload artifacts #10

fix: update release workflow to create zip and upload artifacts

fix: update release workflow to create zip and upload artifacts #10

Workflow file for this run

name: Release
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: Show tag info
run: echo "Building release for tag ${{ github.ref_name }}"
- 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
- uses: ncipollo/release-action@v1
with:
artifacts: "build/scratch-arduino-app*.zip"
allowUpdates: true
# - name: Upload artifacts
# uses: actions/upload-artifact@v5
# with:
# name: scratch-arduino-app-${{ github.ref_name }}
# path: build/scratch-arduino-app-*.zip
# if-no-files-found: error