Skip to content

Commit 8f75938

Browse files
authored
Upload artifacts on release (NabuCasa#62)
1 parent 858b3b1 commit 8f75938

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/build.yaml

+22-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
paths-ignore:
1010
- '.gitignore'
1111
- 'README.md'
12+
release:
13+
types:
14+
- published
1215

1316
env:
1417
REGISTRY: ghcr.io
@@ -180,7 +183,25 @@ jobs:
180183
- name: Upload artifact
181184
uses: actions/[email protected]
182185
with:
183-
name: ${{ steps.build-firmware.outputs.output_basename }}
186+
name: firmware-build-${{ steps.build-firmware.outputs.output_basename }}
184187
path: outputs/*
185188
compression-level: 9
186189
if-no-files-found: error
190+
191+
release-assets:
192+
name: Upload release assets
193+
needs: [build-firmwares]
194+
runs-on: ubuntu-latest
195+
if: github.event_name == 'release'
196+
steps:
197+
- name: Download all workflow artifacts
198+
uses: actions/download-artifact@v4
199+
with:
200+
path: artifacts
201+
merge-multiple: true
202+
pattern: firmware-build-*
203+
204+
- name: Upload artifacts
205+
uses: softprops/action-gh-release@v1
206+
with:
207+
files: artifacts/*

0 commit comments

Comments
 (0)