Skip to content

Commit 8caafe1

Browse files
fix pypi publish
1 parent 83ad49c commit 8caafe1

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/publish.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Publish to PyPI
22

33
on:
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
@@ -45,6 +45,4 @@ jobs:
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

0 commit comments

Comments
 (0)