Skip to content

Commit ec4ced3

Browse files
author
Signal Linden
authored
Merge pull request #25 from secondlife/signal/trusted
Add PyPI trusted publication
2 parents b1154af + 52f9344 commit ec4ced3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
name: Publish to PyPI
6262
needs: build
6363
runs-on: [ubuntu-latest]
64+
permissions:
65+
id-token: write
6466
if: github.event_name != 'pull_request'
6567
steps:
6668
- uses: actions/download-artifact@v3
@@ -71,11 +73,8 @@ jobs:
7173
- name: Test Publish package
7274
uses: pypa/gh-action-pypi-publish@release/v1
7375
with:
74-
password: ${{ secrets.SHARED_PYPI_TEST_TOKEN }}
7576
repository_url: https://test.pypi.org/legacy/
7677

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

0 commit comments

Comments
 (0)