2 parents 625a82e + 11178c3 commit c995db3Copy full SHA for c995db3
1 file changed
.github/workflows/publish-pypi.yml
@@ -27,6 +27,11 @@ jobs:
27
RYE_VERSION: '0.44.0'
28
RYE_INSTALL_OPTION: '--yes'
29
30
- - name: Publish to PyPI
+ # `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
33
run: |
- 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