Skip to content

Commit beabdac

Browse files
authored
trusted publish (#478)
1 parent 5945467 commit beabdac

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

Diff for: .github/workflows/cd.yml

+11-12
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,17 @@ jobs:
2626
run: pipx run twine check dist/*
2727

2828

29-
publish:
30-
needs: [dist]
31-
runs-on: ubuntu-latest
32-
if: github.event_name == 'release' && github.event.action == 'published'
33-
34-
steps:
35-
- uses: actions/download-artifact@v3
29+
publish:
30+
needs: [dist]
31+
environment: release
32+
permissions:
33+
id-token: write
34+
runs-on: ubuntu-latest
35+
if: github.event_name == 'release' && github.event.action == 'published'
36+
steps:
37+
- uses: actions/download-artifact@v4
3638
with:
37-
name: artifact
39+
name: Packages
3840
path: dist
3941

40-
- uses: pypa/[email protected]
41-
with:
42-
password: ${{ secrets.pypi_password }}
43-
print-hash: true
42+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)