Skip to content

Commit

Permalink
Use an environmental variable for PyPI token (#5)
Browse files Browse the repository at this point in the history
The token is not leaked, since GitHub Actions redacts secrets from logs
automatically. But it's safer to not rely on that.
  • Loading branch information
etianen authored Jan 15, 2024
1 parent 6aba6cf commit b40b4ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ jobs:
# Build.
- run: poetry build
# Release.
- run: poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}"
- run: poetry publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}

0 comments on commit b40b4ba

Please sign in to comment.