Skip to content

Commit

Permalink
ci: fix auth error when editing release from GitHub actions
Browse files Browse the repository at this point in the history
Apparently the GitHub CLI needs the GH_TOKEN environment variable
michalc committed Aug 10, 2024
1 parent 758d36c commit ef08e17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-package-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -26,6 +26,8 @@ jobs:
tar --exclude='.git' --exclude='${GITHUB_REF_NAME}.tar.gz' -czvf "${GITHUB_REF_NAME}.tar.gz" .
gh release upload "${GITHUB_REF_NAME}" "${GITHUB_REF_NAME}.tar.gz" "Source code (with release version)"
rm "${GITHUB_REF_NAME}.tar.gz"
env:
GH_TOKEN: ${{ github.token }}

- run: |
pip install build

0 comments on commit ef08e17

Please sign in to comment.