Skip to content

Commit f036090

Browse files
committed
Upload release to gh
1 parent c893438 commit f036090

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/build-ffmpeg.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
- '**.md'
1313
- '**.rst'
1414
- '**.txt'
15+
release:
16+
types: [published]
1517
workflow_dispatch:
1618
jobs:
1719
build:
@@ -132,3 +134,21 @@ jobs:
132134
with:
133135
name: output-${{ matrix.build }}${{ matrix.arch }}
134136
path: output/
137+
138+
upload-release:
139+
if: github.event_name == 'release'
140+
needs: [build, cross-build]
141+
runs-on: ubuntu-latest
142+
permissions:
143+
contents: write
144+
steps:
145+
- name: Download all artifacts
146+
uses: actions/download-artifact@v6
147+
with:
148+
path: artifacts/
149+
pattern: output-*
150+
merge-multiple: true
151+
- name: Upload to release
152+
uses: softprops/action-gh-release@v2
153+
with:
154+
files: artifacts/*.tar.gz

0 commit comments

Comments
 (0)