Skip to content

Commit 4909ba1

Browse files
authored
Merge pull request #924 from Nothing4You/pypi-trusted-publishing
Implement Trusted Publishing for prod PyPI
2 parents e40caac + e4979f5 commit 4909ba1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci-cd.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,9 @@ jobs:
653653
needs.pre-setup.outputs.dist-version
654654
}}
655655
656+
permissions:
657+
id-token: write # this permission is mandatory for trusted publishing
658+
656659
steps:
657660
- name: Download all the dists
658661
uses: actions/download-artifact@v3
@@ -663,7 +666,6 @@ jobs:
663666
Publish 🐍📦 ${{ needs.pre-setup.outputs.git-tag }} to PyPI
664667
uses: pypa/[email protected]
665668
with:
666-
password: ${{ secrets.PYPI_API_TOKEN }}
667669
print_hash: true
668670
669671
publish-testpypi:

0 commit comments

Comments
 (0)