File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments