File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deployment
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ deploy_docs :
10+
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Check-out
15+ uses : actions/checkout@v2
16+ - name : Set up Python
17+ uses : actions/setup-python@v2
18+ with :
19+ python-version : 3.9
20+ - name : Install dependencies
21+ run : |
22+ python -m pip install --upgrade pip
23+ pip install flake8 pytest
24+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
25+ - name : Build distribution
26+ run : python setup.py sdist bdist_wheel
27+ - name : Deploy
28+ run : twine upload -r pypi dist/*
29+ env :
30+ TWINE_USERNAME : ${{ secrets.DEPLOY_USER }}
31+ TWINE_PASSWORD : ${{ secrets.DEPLOY_PASSWORD }}
Original file line number Diff line number Diff line change 1818 id : extract_branch
1919 - name : Check-out
2020 uses : actions/checkout@v2
21- - name : Set up Python 3.9
21+ - name : Set up Python
2222 uses : actions/setup-python@v2
2323 with :
2424 python-version : 3.9
You can’t perform that action at this time.
0 commit comments