File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 11name : Publish to PyPI
22
33on :
4- push :
5- branches :
6- - main
4+ # push:
5+ # branches:
6+ # - main
77 release :
88 types :
99 - created
@@ -32,11 +32,11 @@ jobs:
3232 name : python-package
3333 path : dist/
3434
35- publish :
35+ publish :
3636 needs : build
3737 runs-on : ubuntu-latest
3838 permissions :
39- id-token : write # Required for trusted publishing
39+ id-token : write # ✅ Required for Trusted Publishing (no API key needed)
4040 steps :
4141 - name : Download artifact
4242 uses : actions/download-artifact@v4
4545 path : dist/
4646
4747 - name : Publish to PyPI
48- uses : pypa/gh-action-pypi-publish@release/v1
49- with :
50- password : ${{ secrets.PYPI_API_TOKEN }}
48+ uses : pypa/gh-action-pypi-publish@release/v1 # ✅ No password needed for Trusted Publishing
You can’t perform that action at this time.
0 commit comments