File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -42,30 +42,20 @@ jobs:
4242 run : |
4343 ./build-source.sh
4444 ./build.sh build -Dwerror=true package release
45- - name : Authenticate with GitHub
46- env :
47- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48- run : |
49- hub api user
5045 - name : Upload assets to release
5146 if : github.event.action == 'published'
5247 env :
5348 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5449 run : |
55- set -x
56- git config --global hub.protocol https
57- hub release create -p -m "Release $tag_name" "$tag_name"
58- assets=()
50+ tag_name="${GITHUB_REF##*/}"
5951 for pkg in ./build/*.tar.*; do
60- echo $pkg
61- assets+=("-a" "$pkg")
52+ gh release upload "$tag_name" "$pkg" --clobber
6253 done
63- hub release edit "${assets[@]}" -m "" "$tag_name"
6454
6555 - name : Upload artifact
6656 uses : actions/upload-artifact@v3
6757 continue-on-error : true
6858 with :
6959 name : MangoHud-${{steps.git-vars.outputs.artifact-metadata}}
7060 path : ${{runner.workspace}}/MangoHud/build/MangoHud-*tar.gz
71- retention-days : 30
61+ retention-days : 30
You can’t perform that action at this time.
0 commit comments