Skip to content

Commit aa9da84

Browse files
authored
feat: Publish using PyPi Trusted Providers (#183)
1 parent 3db7f33 commit aa9da84

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ on:
33
release:
44
types: [ published ]
55
jobs:
6-
pypi:
6+
pypi-publish:
7+
name: upload release to PyPI
78
runs-on: ubuntu-latest
9+
environment: pypi
10+
permissions:
11+
id-token: write
812
steps:
913
- name: Checkout
1014
uses: actions/checkout@v3
@@ -14,6 +18,4 @@ jobs:
1418
uses: ./.github/actions/build-core
1519
- run: python3 -m pip install --upgrade build && python3 -m build
1620
- name: Publish package
17-
uses: pypa/gh-action-pypi-publish@release/v1
18-
with:
19-
password: ${{ secrets.PYPI_TOKEN }}
21+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)