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
<img src="../images/tutorials/github-actions-release-workflows-summary.png" alt="Graphic showing an example of a configured workflow for the release. On the top, in the red box labeled "1" you see the "Actions" tab of the GitHub repository. On the left, in the red box labeled "2" you can see the name of the workflow, as configured in this step. Finally, in the center, in the red box labeled "3" you can see several runs of the workflow, for the "1.0" and "1.0.1" releases of the package." width="700px">
68
+
69
+
This image shows an example of a configured workflow for the release. On the top, in the red box labeled "1" you see the "Actions" tab of the GitHub repository. On the left, in the red box labeled "2" you can see the name of the workflow, as configured in this step. Finally, in the center, in the red box labeled "3" you can see several runs of the workflow, for the "1.0" and "1.0.1" releases of the package.
68
70
:::
69
71
70
72
### Step 2: Add triggers to the workflow
@@ -159,7 +161,7 @@ the following to the `release.yaml` file:
159
161
retention-days: 1
160
162
```
161
163
162
-
:::{admonition}
164
+
:::{admonition} Upload artifacts parameters
163
165
:class: tip
164
166
165
167
We have configured the artifact to be deleted after 1 day. The artifacts storage
<img src="../images/tutorials/github-actions-release-workflows-run.png" alt="Graphic showing an example of a release workflow that has just finished running. Each step in the log is matched to one step in the workflow definition." width="700px">
183
+
184
+
This figure shows an example of a release workflow that has just finished running. Each step in the log is matched to one step in the workflow definition." width
181
185
:::
182
186
183
187
At the bottom of the workflow run page on GitHub you should see a section for
184
188
the artifacts produced during runtime and uploaded to this storage area:
<img src="../images/tutorials/github-actions-release-workflows-artifacts.png" alt="Graphic showing an example of an artifact produced by the release workflow." width="700px">
192
+
193
+
This figure shows the artifact produced by the above release workflow. It is now marked as expired since the workflow ran more than a day ago.
188
194
:::
189
195
190
196
You can download the artifact (before it expires), unzip it and install the
Remember to change the `url:` to the URL for your package on PyPI!
229
235
:::
@@ -251,7 +257,7 @@ developers created Trusted Publishing. This allows registering publishers on
251
257
PyPI and mapping them to the automation workflow that is allowed to publish the
252
258
package.
253
259
254
-
:::{admonition}
260
+
:::{admonition} Trusted Publishing outside of GitHub Actions
255
261
:class: tip
256
262
257
263
Trusted Publishing supports other automation platforms, beyond GitHub Actions.
@@ -270,12 +276,17 @@ On the ["Your projects" page on PyPI](https://pypi.org/manage/projects/), click
270
276
271
277
:::{figure-md} trusted-publishing-your-projects
272
278
<img src="../images/tutorials/trusted-publishing-your-projects.png" alt="Graphic showing a screenshot of the "Your projects" page on PyPI. The "Manage" button for one of the projects is highlighted." width="700px">
279
+
280
+
This image shows several projects. The "Manage" button is highlighted for one of the projects, the one we want to configure trusted publishing for.
273
281
:::
274
282
275
283
Then click "Publishing" in the project's sidebar.
276
284
277
285
:::{figure-md} trusted-publishing-publishing
278
286
<img src="../images/tutorials/trusted-publishing-publishing.png" alt="Graphic showing the management page for one project. The "Publishing" link in the sidebar is highlighted." width="700px">
287
+
288
+
Once clicking on the "Manage" button we got to the project's page. In the
289
+
sidebar, we have the "publishing" option, as highlighted here.
279
290
:::
280
291
281
292
This will take you to the publisher configuration page for the project. Trusted
@@ -293,7 +304,7 @@ the following information:
293
304
Once you fill in this form and click "Add" the publisher is configured and can
0 commit comments