We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16c70fd commit fed6df0Copy full SHA for fed6df0
.github/workflows/python-publish.yml
@@ -17,8 +17,13 @@ permissions:
17
18
jobs:
19
deploy:
20
-
+ name: upload release to PyPI
21
runs-on: ubuntu-latest
22
+ # Specifying a GitHub environment is optional, but strongly encouraged
23
+ environment: release
24
+ permissions:
25
+ # IMPORTANT: this permission is mandatory for trusted publishing
26
+ id-token: write
27
28
steps:
29
- uses: actions/checkout@v4
@@ -50,8 +55,5 @@ jobs:
50
55
cmd: build
51
56
- name: Build package
52
57
run: python -m build
53
- - name: Publish package
54
- uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
- with:
- user: __token__
- password: ${{ secrets.PYPI_API_TOKEN }}
58
+ - name: Publish package distributions to PyPI
59
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments