1 parent d6867ad commit ad98346Copy full SHA for ad98346
1 file changed
.github/workflows/publish.yml
@@ -52,6 +52,8 @@ jobs:
52
permissions:
53
id-token: write
54
contents: read
55
+ env:
56
+ PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
57
steps:
58
- name: Download dist artifacts
59
uses: actions/download-artifact@v4
@@ -60,12 +62,12 @@ jobs:
60
62
path: dist
61
63
64
- name: Publish package to PyPI (token)
- if: ${{ secrets.PYPI_API_TOKEN != '' }}
65
+ if: ${{ env.PYPI_API_TOKEN != '' }}
66
uses: pypa/gh-action-pypi-publish@release/v1
67
with:
68
user: __token__
- password: ${{ secrets.PYPI_API_TOKEN }}
69
+ password: ${{ env.PYPI_API_TOKEN }}
70
71
- name: Publish package to PyPI (trusted publishing)
- if: ${{ secrets.PYPI_API_TOKEN == '' }}
72
+ if: ${{ env.PYPI_API_TOKEN == '' }}
73
0 commit comments