We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18a8784 commit 29d5582Copy full SHA for 29d5582
1 file changed
.github/workflows/pypi-release.yml
@@ -16,7 +16,6 @@ jobs:
16
17
permissions:
18
contents: read
19
- id-token: write
20
21
steps:
22
- name: Checkout repository
@@ -35,8 +34,17 @@ jobs:
35
34
- name: Build distributions
36
run: poetry build
37
+ - name: Check PyPI token is configured
38
+ env:
39
+ PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
40
+ run: |
41
+ if [ -z "$PYPI_TOKEN" ]; then
42
+ echo "PYPI_TOKEN secret is empty or unavailable in the pypi_release environment." >&2
43
+ exit 1
44
+ fi
45
+
46
- name: Publish to PyPI
47
uses: pypa/gh-action-pypi-publish@release/v1
48
with:
49
user: __token__
- password: ${{ secrets.PYPI_RELEASE }}
50
+ password: ${{ secrets.PYPI_TOKEN }}
0 commit comments