Skip to content

Commit 7629955

Browse files
committed
ci: add mkdocs builder
1 parent 8a514a8 commit 7629955

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/docs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: docs-builder
2+
on:
3+
push:
4+
branches:
5+
- stable
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
if: github.event.repository.fork == false
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
14+
- uses: actions/setup-python@v4
15+
with:
16+
python-version: "3.10"
17+
- uses: actions/cache@v3
18+
with:
19+
key: ${{ github.ref }}
20+
path: .cache
21+
- run: pip install -e .[docs]
22+
- run: pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
23+
- run: mkdocs gh-deploy
24+
env:
25+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
26+
DEPLOY: True

0 commit comments

Comments
 (0)