@@ -28,7 +28,7 @@ concurrency:
2828jobs :
2929
3030 build :
31- uses : kdeldycke/repomatic/.github/workflows/_release-build.yaml@e8e1f6c651ed0c51dd6622cf316f3f7f591ed3dc # v6.30 .0
31+ uses : kdeldycke/repomatic/.github/workflows/_release-build.yaml@3a04e66e0f653c320bf6e93a8d584f4bf9605a50 # v6.31 .0
3232
3333 publish-pypi :
3434 name : 🐍 Publish to PyPI (${{ matrix.short_sha }})
@@ -48,29 +48,17 @@ jobs:
4848 matrix : ${{ fromJSON(needs.build.outputs.release_commits_matrix || '{"include":[]}') }}
4949 runs-on : ubuntu-slim
5050 permissions :
51+ # OIDC only: the PyPI Trusted Publishing token. The GitHub release notes
52+ # (with their PyPI admonition) are owned end to end by the engine lane's
53+ # create-release job, so this lane needs no write access to the repo.
5154 id-token : write
52- # Lets the admonition step below edit the published release notes.
53- contents : write
5455 steps :
55- - uses : kdeldycke/repomatic/.github/actions/publish-pypi@e8e1f6c651ed0c51dd6622cf316f3f7f591ed3dc # v6.30 .0
56+ - uses : kdeldycke/repomatic/.github/actions/publish-pypi@3a04e66e0f653c320bf6e93a8d584f4bf9605a50 # v6.31 .0
5657 with :
5758 artifact-name : ${{ github.event.repository.name }}-${{ matrix.short_sha }}
58- # Backfill the "available on PyPI" admonition onto the release notes after a successful OIDC upload. The engine
59- # lane publishes the GitHub release without it (it cannot yet know the PyPI outcome). continue-on-error keeps a
60- # notes-edit hiccup from failing an upload that already succeeded.
61- - name : Add PyPI admonition to release notes
62- continue-on-error : true
63- env :
64- GH_TOKEN : ${{ secrets.REPOMATIC_PAT || github.token }}
65- CURRENT_VERSION : ${{ matrix.current_version }}
66- RELEASE_NOTES : ${{ needs.build.outputs.release_notes_with_admonition }}
67- run : >
68- gh release edit "v${CURRENT_VERSION}"
69- --notes-file -
70- --repo "${{ github.repository }}" <<< "${RELEASE_NOTES}"
7159
7260 release :
73- uses : kdeldycke/repomatic/.github/workflows/_release-engine.yaml@e8e1f6c651ed0c51dd6622cf316f3f7f591ed3dc # v6.30 .0
61+ uses : kdeldycke/repomatic/.github/workflows/_release-engine.yaml@3a04e66e0f653c320bf6e93a8d584f4bf9605a50 # v6.31 .0
7462 needs : build
7563 secrets :
7664 REPOMATIC_PAT : ${{ secrets.REPOMATIC_PAT }}
0 commit comments