Skip to content

Commit 1243446

Browse files
committed
github: Add a separate manual workflow for uploading artifacts to a release
1 parent 586a9ac commit 1243446

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Upload artifacts
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
commit:
6+
description: 'Commit to extract from'
7+
required: true
8+
type: string
9+
tag:
10+
description: 'Tag to upload to'
11+
required: true
12+
type: string
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
upload-release:
19+
permissions:
20+
contents: write
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Download artifacts
24+
uses: dawidd6/action-download-artifact@v2
25+
with:
26+
workflow: build.yml
27+
workflow_conclusion: success
28+
commit: ${{inputs.commit}}
29+
- name: Rearrange files
30+
run: |
31+
mv windows-*-toolchain/*.zip linux-toolchain/*.tar.xz macos-toolchain/*.tar.xz .
32+
- name: Upload binaries
33+
env:
34+
GITHUB_TOKEN: ${{github.token}}
35+
run: |
36+
gh release upload ${{inputs.tag}} *.tar.xz *.zip --clobber -R ${{github.repository}}

0 commit comments

Comments
 (0)