Skip to content

Commit

Permalink
ci: Use PyPI environment for publish job
Browse files Browse the repository at this point in the history
Using environments allows to configure additional protections for this
secret, e. g. manual approval of the publish workflow.
  • Loading branch information
robin-nitrokey committed Jul 30, 2024
1 parent daf92b9 commit ef5444b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cd-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
runs-on: ubuntu-latest
container: python:3.9-slim
needs: build
environment: PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
POETRY_PYPI_URL: https://upload.pypi.org/legacy/
Expand Down

0 comments on commit ef5444b

Please sign in to comment.