Skip to content

Commit

Permalink
Quote from PyPI on environments
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored Jan 15, 2024
1 parent 374cb3f commit 9c80722
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pypi/pypi-releases-from-github.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ I used `publish.yml` as the name of my workflow file.

I also set the environment to `release`. I don't fully understand [GitHub Actions environments](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment) yet, but the PyPI documentation suggested this was a good idea and I think it gives me more flexibility for setting extra permissions in the future.

PyPI says:

> While not required, a dedicated publishing environment is strongly encouraged, especially if your repository has maintainers with commit access who shouldn't have PyPl publishing access.
## Creating the GitHub Actions environment

Since we specified the environment on PyPI we need to create that environment. That can be done in the settings area for the repository - in my case that page was here:
Expand Down

0 comments on commit 9c80722

Please sign in to comment.