Skip to content

Commit f3900d4

Browse files
committed
Create mkdocs.yml
1 parent 404a30c commit f3900d4

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/mkdocs.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Run mkdocs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
permissions:
8+
contents: write
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Instal pgnquant for optimize plugin
17+
run: sudo apt-get install pngquant
18+
19+
- name: Set up Python runtime
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: 3.x
23+
24+
- name: Install Python dependencies
25+
run: pip install mkdocs-monorepo-plugin mkdocs-redirects mkdocs-git-authors-plugin mkdocs-git-revision-date-localized-plugin mkdocs-git-committers-plugin-2 Pillow 'mkdocs-material[imaging]'
26+
27+
- name: Set up build cache
28+
uses: actions/cache@v2
29+
with:
30+
key: ${{ github.ref }}
31+
path: .cache
32+
33+
# - name: Install Insiders build
34+
# env:
35+
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
36+
# run: pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
37+
# - run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)