release: bump version #9
Workflow file for this run
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: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runner: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| - ubuntu-24.04-arm | |
| uses: ./.github/workflows/build.yml | |
| with: | |
| runner: ${{ matrix.runner }} | |
| release: | |
| name: Publish release | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download all artifacts | |
| uses: actions/download-artifact@v8 | |
| with: | |
| path: artifacts | |
| merge-multiple: false | |
| - name: Flatten artifacts into a single directory | |
| run: | | |
| mkdir -p release-files | |
| find artifacts -type f | while read f; do | |
| case "$f" in | |
| artifacts/squirrel-*/*) | |
| case "$f" in | |
| *.exe) cp "$f" release-files/ ;; | |
| esac | |
| ;; | |
| *) cp "$f" release-files/ ;; | |
| esac | |
| done | |
| - name: Upload files to release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: release-files/* | |
| fail_on_unmatched_files: false |