Skip to content

Commit e41a8f1

Browse files
committed
ci: fix deploy pypi
1 parent a8116bc commit e41a8f1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/deploy.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@ jobs:
3030
deploy-type: tag
3131

3232
publish-to-pypi:
33-
if: ${{ github.event.inputs.dry-run == 'false' }}
33+
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)