Skip to content

Commit

Permalink
Increase connection timeout for publishing package to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
simu committed Nov 13, 2023
1 parent 482b49f commit ad82fe9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,16 @@ jobs:
run: poetry build
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags/v')
env:
# increase connection timeout to PyPI to 60s
# NOTE(sg): This is probably not required
POETRY_REQUESTS_TIMEOUT: "60"
run: poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }}
- name: Publish to TestPyPI
if: "!startsWith(github.ref, 'refs/tags/v')"
env:
# increase connection timeout to TestPyPI to 60s
POETRY_REQUESTS_TIMEOUT: "60"
run: |
poetry config repositories.test-pypi https://test.pypi.org/legacy/
poetry publish -r test-pypi -u __token__ -p ${{ secrets.TEST_PYPI_TOKEN }}

0 comments on commit ad82fe9

Please sign in to comment.