File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - master
77
88jobs :
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- cache : ' pip'
21- - name : Install dependencies
22- run : |
23- python -m pip install --upgrade pip
24- pip install flake8 pytest
25- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
26- - name : Build distribution
27- run : python setup.py sdist bdist_wheel
28- - name : Deploy
29- run : twine upload -r pypi dist/*
30- env :
31- TWINE_USERNAME : ${{ secrets.DEPLOY_USER }}
32- TWINE_PASSWORD : ${{ secrets.DEPLOY_PASSWORD }}
9+ pypi :
10+ name : Pypi
11+ uses : Bernardo-MG/github-workflow/.github/workflows/python_deploy_pypi.yml@v1
12+ secrets :
13+ username : ${{ secrets.DEPLOY_USER }}
14+ password : ${{ secrets.DEPLOY_PASSWORD }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,4 +5,28 @@ on: [push, pull_request]
55jobs :
66 tests :
77 name : Tests
8- uses : Bernardo-MG/github-workflow/.github/workflows/python_testing.yml@develop
8+ uses : Bernardo-MG/github-workflow/.github/workflows/python_testing.yml@develop
9+
10+ deploy_develop_docs :
11+ name : Deploy development docs
12+ needs : tests
13+ uses : Bernardo-MG/github-workflow/.github/workflows/python_deploy_site.yml@develop
14+ with :
15+ branch : develop
16+ host : docs.bernardomg.com
17+ secrets :
18+ url : ${{ secrets.DEPLOY_DOCS_DEVELOP_SITE }}
19+ username : ${{ secrets.DEPLOY_DOCS_DEVELOP_USER }}
20+ password : ${{ secrets.DEPLOY_DOCS_DEVELOP_PASSWORD }}
21+
22+ deploy_docs :
23+ name : Deploy docs
24+ needs : tests
25+ uses : Bernardo-MG/github-workflow/.github/workflows/python_deploy_site.yml@develop
26+ with :
27+ branch : master
28+ host : docs.bernardomg.com
29+ secrets :
30+ url : ${{ secrets.DEPLOY_DOCS_SITE }}
31+ username : ${{ secrets.DEPLOY_DOCS_USER }}
32+ password : ${{ secrets.DEPLOY_DOCS_PASSWORD }}
You can’t perform that action at this time.
0 commit comments