Skip to content

Commit 8b4b997

Browse files
committed
Update mkdocs.yml
1 parent 3779da8 commit 8b4b997

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/mkdocs.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,40 @@ on:
33
push:
44
branches:
55
- main
6+
67
permissions:
78
contents: write
89
jobs:
910
deploy:
1011
runs-on: ubuntu-latest
1112
steps:
1213
- name: Checkout repository
13-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Instal pgnquant for optimize plugin
19+
run: sudo apt-get install pngquant
1420

1521
- name: Set up Python runtime
16-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v5
1723
with:
1824
python-version: 3.x
1925

2026
- name: Install Python dependencies
21-
run: pip install mkdocs-monorepo-plugin mkdocs-redirects mkdocs-with-pdf weasyprint mkdocs-git-authors-plugin mkdocs-git-revision-date-localized-plugin mkdocs-git-committers-plugin-2
27+
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]'
2228

2329
- name: Set up build cache
24-
uses: actions/cache@v2
30+
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
31+
- uses: actions/cache@v4
2532
with:
26-
key: ${{ github.ref }}
33+
key: mkdocs-material-${{ env.cache_id }}
2734
path: .cache
35+
restore-keys: |
36+
mkdocs-material-
2837
2938
- name: Install Insiders build
3039
env:
31-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
32-
run: pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
40+
MKDOCS_TOKEN: ${{ secrets.MKDOCS_SECRET }}
41+
run: pip install git+https://${MKDOCS_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
3342
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)