Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload artifacts on release #64

Merged
merged 2 commits into from
May 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/upload-artifact@v4.3.3
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
Loading