Skip to content

Commit

Permalink
Add write permissions to the upload job
Browse files Browse the repository at this point in the history
Only upload GBL files
  • Loading branch information
puddly committed May 7, 2024
1 parent 4b73c8c commit 6f02eb8
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,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 6f02eb8

Please sign in to comment.