diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3205629..1b4761c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,13 +31,15 @@ jobs: publish-to-pypi: if: ${{ github.event.inputs.dry-run == 'false' }} + needs: commit-changelog-and-release runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.inputs.version-tag }} - uses: deargen/workflows/actions/setup-python-and-uv@master - name: Build and upload to PyPI - if: ${{ github.event.inputs.dry-run == 'false' }} run: | - git tag -a ${{ github.event.inputs.version-tag }} -m "Release ${{ github.event.inputs.version-tag }}" uv pip install build twine python -m build . --sdist twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --non-interactive