@@ -131,9 +131,10 @@ later in the upload action for the release job, as well).
131131> The artifact it produces is named `Packages`, so that's what you need to use
132132> later to publish. This will be used instead of the manual steps below.
133133
134- And then, you need a release job :
134+ And then, you need a release job. Trusted Publishing is more secure and
135+ recommended {% rr GH105 %} :
135136
136- {% tabs %} {% tab oidc Trusted Publishing %}
137+ {% tabs %} {% tab oidc Trusted Publishing (recommended) %}
137138
138139{% raw %}
139140
@@ -194,10 +195,10 @@ publish:
194195
195196{% endraw %}
196197
197- When you make a GitHub release in the web UI, we publish to PyPI. You'll need to
198- go to PyPI, generate a token for your user, and put it into `pypi_password` on
199- your repo's secrets page. Once you have a project, you should delete your
200- user-scoped token and generate a new project-scoped token.
198+ If you cannot use Trusted Publishing, this publishes to PyPI with a token.
199+ You'll need to go to PyPI, generate a token for your user, and put it into
200+ ` pypi_password ` on your repo's secrets page. Once you have a project, you should
201+ delete your user-scoped token and generate a new project-scoped token.
201202
202203{% endtab %} {% endtabs %}
203204
@@ -208,7 +209,7 @@ This can be used on almost any package with a standard
208209exactly how to build your package, hence all packages build exactly via the same
209210interface :
210211
211- {% tabbodies %} {% tab oidc Trusted Publishing %}
212+ {% tabbodies %} {% tab oidc Trusted Publishing (recommended) %}
212213
213214{% raw %}
214215
@@ -306,6 +307,11 @@ jobs:
306307
307308{% endraw %}
308309
310+ If you cannot use Trusted Publishing, this publishes to PyPI with a token.
311+ You'll need to go to PyPI, generate a token for your user, and put it into
312+ ` pypi_password` on your repo's secrets page. Once you have a project, you should
313+ delete your user-scoped token and generate a new project-scoped token.
314+
309315{% endtab %} {% endtabbodies %}
310316
311317{% enddetails %}
0 commit comments