You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
###Automating the PyPI release using GitHub actions
150
152
151
153
Tags adhering to `"*.*.*"` that are pushed to the `main` branch will trigger the release Github workflow that automatically builds and uploads the Python package to [PyPI][].
152
154
@@ -155,8 +157,9 @@ To set this up, login to [PyPI][], and proceed depending on whether you already
155
157
- If yes, navigate to the project. In the left sidebar, choose "Publishing", then proceed to add the repository details.
156
158
- If not, go to your [PyPI publishing settings][] and fill out the “Add a new pending publisher” form.
157
159
160
+
Enter everything *exactly* as it is displayed on GitHub (i.e. use the correct casing for your repository name).
158
161
The "Workflow name" needs to bet set to `release.yaml`.
159
-
In most cases, you can leave the "Environment name" empty.
162
+
Set "Environment name" to “pypi” to match `environment: pypi` in `.github/workflows/release.yaml`.
160
163
For more details, please refer to the official [PyPI guide for setting up trusted publishing][trusted publisher].
0 commit comments