Skip to content

Commit 200f31a

Browse files
committed
Update gh action deploy script to also deploy docs
1 parent d663992 commit 200f31a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v1
11+
- uses: actions/checkout@v2
1212
- name: Set up Python
13-
uses: actions/setup-python@v1
13+
uses: actions/setup-python@v2
1414
with:
1515
python-version: '3.x'
1616
- name: Install dependencies
@@ -19,8 +19,11 @@ jobs:
1919
pip install setuptools wheel twine
2020
- name: Make sure unit tests succeed
2121
run: |
22+
git config --global user.name "Github Action"
23+
git config --global user.email "[email protected]"
2224
pip install -r tests/test_requirements.txt
23-
pip install -e .
25+
pip install mkdocs-material
26+
pip install .
2427
pytest
2528
- name: Build and publish
2629
env:
@@ -29,3 +32,6 @@ jobs:
2932
run: |
3033
python setup.py sdist bdist_wheel
3134
twine upload dist/*
35+
- name: Deploy mkdocs site
36+
run: |
37+
mkdocs gh-deploy --force

0 commit comments

Comments
 (0)