Skip to content

Commit c995db3

Browse files
authored
Merge pull request #17 from brapi-dev/fix/pypi-trusted-publishing
fix(ci): publish to PyPI with trusted publishing
2 parents 625a82e + 11178c3 commit c995db3

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎.github/workflows/publish-pypi.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ jobs:
2727
RYE_VERSION: '0.44.0'
2828
RYE_INSTALL_OPTION: '--yes'
2929

30-
- name: Publish to PyPI
30+
# `rye publish` cannot use trusted publishing (OIDC), so build with rye
31+
# and upload with the PyPA action, which exchanges the OIDC token.
32+
- name: Build
3133
run: |
32-
bash ./bin/publish-pypi
34+
rye build --clean
35+
36+
- name: Publish to PyPI
37+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2

0 commit comments

Comments
 (0)