Skip to content

Commit ed393fd

Browse files
authored
Add PyPI trusted publication (#12)
Add PyPI trusted publication Publish llsd with PyPI's new [trusted publisher](https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/) functionality rather than an access token.
1 parent 0931046 commit ed393fd

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
@@ -60,6 +60,8 @@ jobs:
6060
name: Publish to PyPI
6161
needs: build
6262
runs-on: [ubuntu-latest]
63+
permissions:
64+
id-token: write
6365
if: github.event_name != 'pull_request'
6466
steps:
6567
- uses: actions/download-artifact@v3
@@ -73,11 +75,8 @@ jobs:
7375
- name: Test Publish package
7476
uses: pypa/gh-action-pypi-publish@release/v1
7577
with:
76-
password: ${{ secrets.SHARED_PYPI_TEST_TOKEN }}
7778
repository_url: https://test.pypi.org/legacy/
7879

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

0 commit comments

Comments
 (0)