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 c9545f2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ 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:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
steps:
Expand All @@ -57,10 +64,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 c9545f2

Please sign in to comment.