Skip to content

Commit b39fbfa

Browse files
committed
feat: workflow
1 parent 4f0fa1a commit b39fbfa

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: publish to github pages
2+
on:
3+
push:
4+
branches:
5+
- docs
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Configure Git Credentials
16+
run: |
17+
git config user.name github-actions[bot]
18+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: 3.x
22+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
23+
- uses: actions/cache@v4
24+
with:
25+
key: mkdocs-material-${{ env.cache_id }}
26+
path: ~/.cache
27+
restore-keys: |
28+
mkdocs-material-
29+
30+
- run: pip install mkdocs-material
31+
32+
- name: install plugins
33+
run: |
34+
pip install "mkdocs-material[imaging]"
35+
sudo apt-get install libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
36+
37+
pip install mkdocs-glightbox
38+
39+
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)