We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5748c4b + ce4712d commit ac83aa0Copy full SHA for ac83aa0
1 file changed
.github/workflows/python-publish.yml
@@ -7,8 +7,7 @@ name: Upload Python Package
7
8
on:
9
push:
10
- branches:
11
- - master
+ tags: 'v*.*.*'
12
13
jobs:
14
deploy:
@@ -27,8 +26,8 @@ jobs:
27
26
pip install setuptools wheel twine
28
- name: Build and publish
29
env:
30
- TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
31
- TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
+ TWINE_USERNAME: __token__
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
32
run: |
33
python setup.py sdist bdist_wheel
34
twine upload dist/*
0 commit comments