diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index 85b5b4556b..cdfa78f197 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -42,25 +42,15 @@ 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 @@ -68,4 +58,4 @@ jobs: with: name: MangoHud-${{steps.git-vars.outputs.artifact-metadata}} path: ${{runner.workspace}}/MangoHud/build/MangoHud-*tar.gz - retention-days: 30 + retention-days: 30 \ No newline at end of file