Skip to content

Commit 464e69f

Browse files
committed
use a trusted publisher
1 parent 04312bb commit 464e69f

2 files changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- uses: actions/checkout@v3
3030
- name: Build wheels
31-
uses: pypa/cibuildwheel@v2.16.5
31+
uses: pypa/cibuildwheel@v2.22.0
3232
- uses: actions/upload-artifact@v3
3333
with:
3434
path: ./wheelhouse/*.whl

.github/workflows/release.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v3
1717
- name: Build wheels
18-
uses: pypa/cibuildwheel@v2.16.5
18+
uses: pypa/cibuildwheel@v2.22.0
1919
- uses: actions/upload-artifact@v3
2020
with:
2121
path: ./wheelhouse/*.whl
@@ -24,15 +24,19 @@ jobs:
2424
name: Release To PyPi
2525
needs: [build_wheels]
2626
runs-on: ubuntu-latest
27+
permissions:
28+
id-token: write
2729
steps:
28-
- uses: actions/download-artifact@v3
29-
with:
30-
name: artifact
31-
path: dist
32-
- uses: pypa/gh-action-pypi-publish@v1.6.4
33-
with:
34-
user: __token__
35-
password: ${{ secrets.PYPI_API_TOKEN }}
30+
- uses: actions/setup-python@v4
31+
with:
32+
python-version: "3.12"
33+
34+
- uses: actions/download-artifact@v3
35+
with:
36+
name: artifact
37+
path: dist
38+
39+
- uses: pypa/gh-action-pypi-publish@v1.8.10
3640

3741
create_release:
3842
name: Create GitHub Release

0 commit comments

Comments
 (0)