Skip to content

Commit

Permalink
Upload artifacts on release (#64)
Browse files Browse the repository at this point in the history
* Add `write` permissions to the upload job

Only upload GBL files

* Re-add release type
  • Loading branch information
puddly authored May 24, 2024
1 parent 4b73c8c commit 7e3ddb5
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
paths-ignore:
- '.gitignore'
- 'README.md'
release:
types:
- published

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -180,7 +183,27 @@ jobs:
- name: Upload artifact
uses: actions/[email protected]
with:
name: ${{ steps.build-firmware.outputs.output_basename }}
name: firmware-build-${{ steps.build-firmware.outputs.output_basename }}
path: outputs/*
compression-level: 9
if-no-files-found: error

release-assets:
name: Upload release assets
needs: [build-firmwares]
if: github.event_name == 'release'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download all workflow artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
pattern: firmware-build-*

- name: Upload artifacts
uses: softprops/action-gh-release@v1
with:
files: artifacts/*.gbl

0 comments on commit 7e3ddb5

Please sign in to comment.