-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `write` permissions to the upload job Only upload GBL files * Re-add release type
- Loading branch information
Showing
1 changed file
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,9 @@ on: | |
paths-ignore: | ||
- '.gitignore' | ||
- 'README.md' | ||
release: | ||
types: | ||
- published | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
@@ -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 |