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 6afa93f commit d83f5d8Copy full SHA for d83f5d8
.github/workflows/python-publish.yml
@@ -8,8 +8,12 @@ permissions:
8
contents: read
9
10
jobs:
11
- publish:
+ pypi-publish:
12
+ name: upload release to PyPI
13
runs-on: ubuntu-latest
14
+ environment: release
15
+ permissions:
16
+ id-token: write
17
steps:
18
- uses: actions/checkout@v4
19
- name: Set up Python
@@ -22,8 +26,5 @@ jobs:
22
26
python -m pip install build
23
27
- name: Build package
24
28
run: python -m build
25
- - name: Publish package
- uses: pypa/gh-action-pypi-publish@release/v1
- with:
- user: __token__
29
- password: ${{ secrets.PYPI_API_TOKEN }}
+ - name: Publish package distributions to PyPI
30
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments