Skip to content

Commit

Permalink
ci: fix deploy pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoon committed Sep 8, 2024
1 parent a8116bc commit e41a8f1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ jobs:
deploy-type: tag

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

0 comments on commit e41a8f1

Please sign in to comment.