File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 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}}
You can’t perform that action at this time.
0 commit comments