Skip to content

Commit d54eda4

Browse files
committed
ci: Switch to trusted publishers
1 parent 600f041 commit d54eda4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/pypi.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on: push
33
jobs:
44
build:
55
runs-on: ubuntu-latest
6+
permissions:
7+
id-token: write
68
steps:
79
- uses: actions/checkout@v4
810
- uses: actions/setup-python@v5
@@ -13,11 +15,8 @@ jobs:
1315
- name: Publish to TestPyPI
1416
uses: pypa/gh-action-pypi-publish@release/v1
1517
with:
16-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
1718
repository-url: https://test.pypi.org/legacy/
1819
skip-existing: true
1920
- name: Publish to PyPI
2021
if: startsWith(github.ref, 'refs/tags')
2122
uses: pypa/gh-action-pypi-publish@release/v1
22-
with:
23-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)