We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81795da commit b879be5Copy full SHA for b879be5
1 file changed
.github/workflows/python-publish.yml
@@ -22,10 +22,16 @@ jobs:
22
run: |
23
python -m pip install --upgrade pip
24
pip install setuptools wheel twine
25
- - name: Build and publish
26
- env:
27
- TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28
- TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29
- run: |
30
python setup.py sdist bdist_wheel
31
- twine upload dist/*
+
+ - name: Publish distribution 📦 to Test PyPI
+ uses: pypa/gh-action-pypi-publish@master
+ with:
+ password: ${{ secrets.TEST_PYPI_API_TOKEN }}
+ repository_url: https://test.pypi.org/legacy/
32
+ - name: Publish distribution 📦 to PyPI
33
+ if: startsWith(github.ref, 'refs/tags')
34
35
36
+ password: ${{ secrets.PYPI_API_TOKEN }}
37
0 commit comments