Skip to content

Commit 8a8d956

Browse files
Update publish-to-pypi.yml
attempt to fix with trusted publisher workflow
1 parent 2b41953 commit 8a8d956

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
build-n-publish:
1010
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
1111
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
1214

1315
steps:
1416
- uses: actions/checkout@master
@@ -35,8 +37,7 @@ jobs:
3537
- name: Publish distribution 📦 to Test PyPI
3638
uses: pypa/gh-action-pypi-publish@release/v1
3739
with:
38-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
39-
repository_url: https://test.pypi.org/legacy/
40+
repository-url: https://test.pypi.org/legacy/
4041
- name: Publish distribution 📦 to PyPI
4142
if: startsWith(github.ref, 'refs/tags')
4243
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)