Skip to content

Commit 25adb71

Browse files
authored
Fix CI docs building for 0.9.0 (#85)
* CI: fix docs building * CI: build docs for push but only deply on master * CI: fix syntax in docs
1 parent 219a18d commit 25adb71

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ on: [push, pull_request]
55
jobs:
66
docs:
77
runs-on: ubuntu-latest
8-
if: github.ref == 'refs/heads/master'
98
strategy:
109
matrix:
11-
python-version: [3.8]
10+
python-version: [3.9]
1211
steps:
1312
- uses: actions/checkout@v2
1413
- name: Setup Python # Set Python version
@@ -28,8 +27,12 @@ jobs:
2827
cp ../README.md index.md
2928
cp ../logo.png ./
3029
cd ..
31-
poetry run mkdocs gh-deploy --clean --force
30+
poetry run mkdocs build --clean
3231
if: success()
32+
- name: Deploy docs
33+
run: |
34+
poetry run mkdocs gh-deploy --clean --force
35+
if: success() && github.ref == 'refs/heads/master'
3336

3437
fix-index:
3538
needs: docs

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mkdocs==1.1.2
2-
mkdocs-material==7.2.2
1+
mkdocs
2+
mkdocs-material
33
pymdown-extensions
44
mkapi-fix

0 commit comments

Comments
 (0)