File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Upload to PyPI
2+ on :
3+ release :
4+ types : [published]
5+ jobs :
6+ upload :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v2
10+ - name : Fetch complete history for all tags and branches
11+ run : git fetch --prune --unshallow
12+ - name : Set up Python
13+ uses : actions/setup-python@v2
14+ with :
15+ python-version : ' 3.x'
16+ - name : Install dependencies
17+ run : |
18+ python -m pip install --upgrade pip
19+ pip install setuptools wheel twine
20+ - name : Build distribution
21+ run : python setup.py sdist bdist_wheel
22+ - name : Publish to PyPI Test
23+ env :
24+ TWINE_USERNAME : __token__
25+ TWINE_PASSWORD : ${{ secrets.PYPI_TEST_TOKEN }}
26+ run : twine upload --repository testpypi dist/*
27+ - name : Publish to PyPI
28+ env :
29+ TWINE_USERNAME : __token__
30+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
31+ run : twine upload --repository pypi dist/*
You can’t perform that action at this time.
0 commit comments