fix: simplify download command in installer script #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| vars: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| # - 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 | ||