File tree Expand file tree Collapse file tree 1 file changed +17
-25
lines changed Expand file tree Collapse file tree 1 file changed +17
-25
lines changed Original file line number Diff line number Diff line change 55 tags :
66 - ' *'
77
8+ # From https://docs.github.com/en/actions/guides/building-and-testing-python
89jobs :
910 deploy :
1011 runs-on : ubuntu-latest
1112 steps :
12- - uses : actions/setup-python@v2
13- with :
14- python-version : ' 3.7'
15- architecture : ' x64'
16-
17- steps :
18- - task : UsePythonVersion@0
19- inputs :
20- versionSpec : " $(python.version)"
21- displayName : " Use Python $(python.version)"
22-
23- - name : Deploy
24- run : |
25- pip install wheel twine
26- python setup.py sdist bdist_wheel
27- echo [distutils] > ~/.pypirc
28- echo index-servers=pypi >> ~/.pypirc
29- echo [pypi] >> ~/.pypirc
30- echo username=$PYPI_USERNAME >> ~/.pypirc
31- echo password=$PYPI_PASSWORD >> ~/.pypirc
32- twine upload dist/*
33-
34- env :
35- PYPI_USERNAME : ${{ secrets.PYPI_USERNAME }}
36- PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
13+ - uses : actions/checkout@v2
14+ - name : Set up Python
15+ uses : actions/setup-python@v2
16+ with :
17+ python-version : ' 3.x'
18+ - name : Install dependencies
19+ run : |
20+ python -m pip install --upgrade pip
21+ pip install setuptools wheel twine
22+ - name : Build and publish
23+ env :
24+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
25+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
26+ run : |
27+ python setup.py sdist bdist_wheel
28+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments