File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- main
6
+
6
7
permissions :
7
8
contents : write
8
9
jobs :
9
10
deploy :
10
11
runs-on : ubuntu-latest
11
12
steps :
12
13
- 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
14
20
15
21
- name : Set up Python runtime
16
- uses : actions/setup-python@v4
22
+ uses : actions/setup-python@v5
17
23
with :
18
24
python-version : 3.x
19
25
20
26
- 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]'
22
28
23
29
- 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
25
32
with :
26
- key : ${{ github.ref }}
33
+ key : mkdocs-material- ${{ env.cache_id }}
27
34
path : .cache
35
+ restore-keys : |
36
+ mkdocs-material-
28
37
29
38
- name : Install Insiders build
30
39
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
33
42
- run : mkdocs gh-deploy --force
You can’t perform that action at this time.
0 commit comments