File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : Run mkdocs
2
+
2
3
on :
4
+ # Allows this workflow to run automatically on commits pushed to main branch
3
5
push :
4
6
branches :
5
7
- main
6
8
9
+ # Sets permissions of the GITHUB_TOKEN to allow files to be committed to gh-pages branch
7
10
permissions :
8
11
contents : write
12
+
13
+
9
14
jobs :
10
15
deploy :
11
16
runs-on : ubuntu-latest
17
+
12
18
steps :
13
19
- name : Checkout repository
14
20
uses : actions/checkout@v4
@@ -25,13 +31,16 @@ jobs:
25
31
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
32
27
33
- name : Set up build cache
28
- uses : actions/cache@v2
34
+ run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
35
+ - uses : actions/cache@v4
29
36
with :
30
- key : ${{ github.ref }}
37
+ key : mkdocs-material- ${{ env.cache_id }}
31
38
path : .cache
39
+ restore-keys : |
40
+ mkdocs-material-
32
41
33
42
- name : Install Insiders build
34
43
env :
35
- GH_TOKEN : ${{ secrets.GH_TOKEN }}
36
- run : pip install git+https://${GH_TOKEN }@github.com/squidfunk/mkdocs-material-insiders.git
44
+ MKDOCS_TOKEN : ${{ secrets.MKDOCS_SECRET }}
45
+ run : pip install git+https://${MKDOCS_TOKEN }@github.com/squidfunk/mkdocs-material-insiders.git
37
46
- run : mkdocs gh-deploy --force
You can’t perform that action at this time.
0 commit comments