Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
needs: [release]
steps:
- name: Download artifacts
uses: actions/download-artifact@v5
uses: actions/download-artifact@v7
with:
merge-multiple: true
pattern: dist-*
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_publish_pure_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
needs: [setenv]
steps:
- name: Download artifacts
uses: actions/download-artifact@v5
uses: actions/download-artifact@v7
with:
merge-multiple: true
pattern: dist-*
Expand Down
7 changes: 5 additions & 2 deletions docs/source/trusted_publishing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ We also add an if statement to the job so that it only runs on tags starting wit

upload:
if: startsWith(github.ref, 'refs/tags/v')
name: Use built dists and test upload
name: Upload built artifacts to PyPI
runs-on: ubuntu-latest
needs: [build]
permissions:
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v5
uses: actions/download-artifact@v7
with:
merge-multiple: true
pattern: dist-*
Expand All @@ -59,3 +61,4 @@ We also add an if statement to the job so that it only runs on tags starting wit


You will also need to `Add a Trusted Publisher <https://docs.pypi.org/trusted-publishers/adding-a-publisher/>`__ to your PyPI project.
If, as recommended, you are using a deployment environment then don't forget to add that to the job description as well.
Loading