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 e63531a commit f8fb670Copy full SHA for f8fb670
.github/workflows/release-stable.yml
@@ -46,7 +46,17 @@ jobs:
46
echo "📦 Package contents:"
47
ls -la dist/
48
49
- - name: Publish to PyPI
+ - name: Publish to PyPI (token)
50
+ if: ${{ secrets.PYPI_API_TOKEN != '' }}
51
+ uses: pypa/gh-action-pypi-publish@release/v1
52
+ with:
53
+ user: __token__
54
+ password: ${{ secrets.PYPI_API_TOKEN }}
55
+ print-hash: true
56
+ verbose: true
57
+
58
+ - name: Publish to PyPI (trusted)
59
+ if: ${{ secrets.PYPI_API_TOKEN == '' }}
60
uses: pypa/gh-action-pypi-publish@release/v1
61
with:
62
print-hash: true
0 commit comments