We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 509df9f commit c6bc348Copy full SHA for c6bc348
.github/workflows/publish.yml
@@ -13,6 +13,8 @@ jobs:
13
publish:
14
runs-on: ubuntu-latest
15
environment: release
16
+ env:
17
+ PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
18
steps:
19
- uses: actions/checkout@v4
20
@@ -41,12 +43,12 @@ PY
41
43
python -m build
42
44
45
- name: Publish to PyPI (API token)
- if: ${{ secrets.PYPI_API_TOKEN != '' }}
46
+ if: ${{ env.PYPI_API_TOKEN != '' }}
47
uses: pypa/gh-action-pypi-publish@release/v1
48
with:
49
user: __token__
- password: ${{ secrets.PYPI_API_TOKEN }}
50
+ password: ${{ env.PYPI_API_TOKEN }}
51
52
- name: Publish to PyPI (trusted publisher)
- if: ${{ secrets.PYPI_API_TOKEN == '' }}
53
+ if: ${{ env.PYPI_API_TOKEN == '' }}
54
0 commit comments