Skip to content
Merged
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
9 changes: 9 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,19 @@ jobs:
# the publisher is registered on test.pypi.org for this repo /
# workflow / environment. With no token, `attestations` also
# takes effect (PEP 740 provenance signatures).
# tolerate "file already exists" (e.g. when re-running the workflow
# after a partial release), so the PyPI step still runs
continue-on-error: true
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
packages-dir: ${{ env.ARTIFACT_DIR }}
- name: Remove attestations generated by the TestPyPI publish
# the two publish steps share the same dist/ directory; the leftover
# *.publish.attestation files would make the PyPI step fail with
# "distributions already have publish attestations" (hit during the
# bib_lookup v0.2.0 release, fixed there in a7fa7eb)
run: rm -f ${{ env.ARTIFACT_DIR }}/*.publish.attestation
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
Loading