Skip to content

Commit b25bf7c

Browse files
authored
Use trusted publisher setup for CI (#1852)
1 parent 4c81530 commit b25bf7c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ jobs:
77
build-n-publish:
88
name: Build release packages
99
runs-on: ubuntu-latest
10+
environment: publish
11+
permissions: # for trusted publishing
12+
id-token: write
1013

1114
steps:
1215
- uses: actions/checkout@master
16+
1317
- name: Setup python
14-
uses: actions/setup-python@v3
18+
uses: actions/setup-python@v4
1519
with:
16-
python-version: 3.9
20+
python-version: "3.x"
1721

1822
- name: Install pypa/build
1923
run: >-
@@ -32,6 +36,4 @@ jobs:
3236
.
3337
3438
- name: Publish release on pypi
35-
uses: pypa/gh-action-pypi-publish@master
36-
with:
37-
password: ${{ secrets.PYPI_API_TOKEN }}
39+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)