Skip to content

Commit

Permalink
make sure to checkout tag before creating release (#2164)
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian authored Dec 9, 2024
1 parent 9001859 commit 6aa31b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ jobs:
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create ${GITHUB_REF#refs/tags/}
run: gh release create "$GITHUB_REF_NAME" --generate-notes
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6aa31b4

Please sign in to comment.