Skip to content

Commit

Permalink
fix pypi release
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 committed Jan 13, 2025
1 parent 0e57b87 commit c450268
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,10 @@ jobs:
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
POETRY_PYPI_TOKEN_TESTPYPI: ${{ secrets.TEST_PYPI_API_TOKEN }}
POETRY_REQUESTS_TIMEOUT: 60
run: |
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
poetry publish
poetry publish --skip-existing
else
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish -r testpypi
Expand Down

0 comments on commit c450268

Please sign in to comment.