Skip to content

Commit 1ade435

Browse files
committed
Switch to PyPi Trusted Publishers
1 parent cf28bf5 commit 1ade435

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ jobs:
99
name: Build and Publish to PyPI
1010
runs-on: ubuntu-latest
1111
if: startsWith(github.ref, 'refs/tags')
12+
permissions:
13+
id-token: write
1214
steps:
1315
- uses: actions/checkout@master
14-
- name: Set up Python 3.10
15-
uses: actions/setup-python@v3
16+
- name: Set up Python 3.13
17+
uses: actions/setup-python@v5
1618
with:
17-
python-version: "3.10"
19+
python-version: "3.13"
1820
- name: Install pypa/build
1921
run: >-
2022
python -m pip install --user ".[build]"
@@ -23,5 +25,3 @@ jobs:
2325
python -m build --sdist --wheel --outdir dist/
2426
- name: Publish Distribution to PyPI
2527
uses: pypa/gh-action-pypi-publish@release/v1
26-
with:
27-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)