Skip to content

Commit 4e7bfbd

Browse files
authored
deploy docs workflow done
1 parent 79fe760 commit 4e7bfbd

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/deploy_docs.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy MkDocs static site
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: 3.x
19+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
20+
- uses: actions/cache@v4
21+
with:
22+
key: mkdocs-material-${{ env.cache_id }}
23+
path: ~/.cache
24+
restore-keys: |
25+
mkdocs-material-
26+
- run: pip install -r requirements-docs.txt
27+
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)