Skip to content

Commit

Permalink
workflow: build-package: actually fix bad credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
flightlessmango committed May 25, 2024
1 parent 038478a commit 7b80f73
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,20 @@ jobs:
run: |
./build-source.sh
./build.sh build -Dwerror=true package release
- name: Authenticate with GitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
hub api user
- name: Upload assets to release
if: github.event.action == 'published'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -x
git config --global hub.protocol https
hub release create -p -m "Release $tag_name" "$tag_name"
assets=()
tag_name="${GITHUB_REF##*/}"
for pkg in ./build/*.tar.*; do
echo $pkg
assets+=("-a" "$pkg")
gh release upload "$tag_name" "$pkg" --clobber
done
hub release edit "${assets[@]}" -m "" "$tag_name"
- name: Upload artifact
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: MangoHud-${{steps.git-vars.outputs.artifact-metadata}}
path: ${{runner.workspace}}/MangoHud/build/MangoHud-*tar.gz
retention-days: 30
retention-days: 30

0 comments on commit 7b80f73

Please sign in to comment.