Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aefbba5

Browse files
committedSep 8, 2024·
ci: fix deploy pypi
1 parent a8116bc commit aefbba5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎.github/workflows/deploy.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ jobs:
3131

3232
publish-to-pypi:
3333
if: ${{ github.event.inputs.dry-run == 'false' }}
34+
needs: commit-changelog-and-release
3435
runs-on: ubuntu-latest
3536
steps:
37+
- uses: actions/checkout@v4
38+
with:
39+
ref: ${{ github.event.inputs.version-tag }}
3640
- uses: deargen/workflows/actions/setup-python-and-uv@master
3741
- name: Build and upload to PyPI
38-
if: ${{ github.event.inputs.dry-run == 'false' }}
3942
run: |
40-
git tag -a ${{ github.event.inputs.version-tag }} -m "Release ${{ github.event.inputs.version-tag }}"
4143
uv pip install build twine
4244
python -m build . --sdist
4345
twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --non-interactive

0 commit comments

Comments
 (0)
Please sign in to comment.