Skip to content

Commit 7b80f73

Browse files
workflow: build-package: actually fix bad credentials
1 parent 038478a commit 7b80f73

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

.github/workflows/build-package.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)