Skip to content

Commit

Permalink
Fix 530e325: 'gh' requires a git repository
Browse files Browse the repository at this point in the history
  • Loading branch information
glx22 committed Feb 16, 2025
1 parent d9290e6 commit 8ebdeea
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ jobs:
name: cibw-sdist
path: dist/*.tar.gz

upload:
- name: Upload to github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.event.release.tag_name }} dist/*.tar.gz
publish:
name: Publish wheels and source distribution
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
steps:
Expand All @@ -57,10 +65,8 @@ jobs:
- name: Publish wheel and source distribution
env:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
twine upload --username __token__ dist/*.whl dist/*.tar.gz
gh release upload ${{ github.event.release.tag_name }} dist/*.tar.gz
release-windows:
Expand Down

0 comments on commit 8ebdeea

Please sign in to comment.