mirror of
https://github.com/laurentS/slowapi.git
synced 2026-03-13 09:10:20 +08:00
Update publishing workflow based on pypa docs
This commit is contained in:
14
.github/workflows/python-package.yml
vendored
14
.github/workflows/python-package.yml
vendored
@@ -56,9 +56,15 @@ jobs:
|
||||
if: startsWith(github.ref, 'refs/tags')
|
||||
run: |
|
||||
poetry build
|
||||
- name: Publish distribution 📦 to Test PyPI
|
||||
# publish to testpypi on all commit just for testing this PR
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
||||
repository-url: https://test.pypi.org/legacy/
|
||||
|
||||
- name: Publish release to PyPI
|
||||
- name: Publish distribution 📦 to PyPI
|
||||
if: startsWith(github.ref, 'refs/tags')
|
||||
# uses POETRY_REPOSITORIES_TESTPYPI, POETRY_PYPI_TOKEN_TESTPYPI env vars
|
||||
run: |
|
||||
poetry publish --repository testpypi
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user