Skip to content

Commit 9a557a2

Browse files
authored
Merge pull request #4 from secondlife/signal/trusted
Add PyPI trusted publication
2 parents 05ad144 + f4439c0 commit 9a557a2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ jobs:
5858
name: Publish to PyPI
5959
needs: build
6060
runs-on: [ubuntu-latest]
61+
permissions:
62+
id-token: write
6163
if: github.event_name != 'pull_request'
6264
steps:
6365
- uses: actions/download-artifact@v3
@@ -70,11 +72,8 @@ jobs:
7072
- name: Test Publish package
7173
uses: pypa/gh-action-pypi-publish@release/v1
7274
with:
73-
password: ${{ secrets.SHARED_PYPI_TEST_TOKEN }}
7475
repository_url: https://test.pypi.org/legacy/
7576

7677
- name: Publish package
7778
uses: pypa/gh-action-pypi-publish@release/v1
7879
if: startsWith(github.event.ref, 'refs/tags/v')
79-
with:
80-
password: ${{ secrets.SHARED_PYPI_TOKEN }}

0 commit comments

Comments
 (0)