File tree 4 files changed +45
-35
lines changed
4 files changed +45
-35
lines changed Original file line number Diff line number Diff line change 50
50
uses : actions/cache@v3
51
51
id : cache
52
52
with :
53
- key : ${{ runner.os }}- ${{ hashFiles('.cache/**') }}
53
+ key : mkdocs-material- ${{ github.sha }}
54
54
path : .cache
55
+ restore-keys : |
56
+ mkdocs-material-
55
57
56
58
- name : Install dependencies
57
59
run : sudo apt-get install pngquant
Original file line number Diff line number Diff line change @@ -38,10 +38,12 @@ contents:
38
38
- uses: actions/setup-python@v4
39
39
with:
40
40
python-version: 3.x
41
- - uses: actions/cache@v2
41
+ - uses: actions/cache@v3
42
42
with:
43
- key: ${{ github.ref }}
43
+ key: mkdocs-material- ${{ github.sha }}
44
44
path: .cache
45
+ restore-keys: |
46
+ mkdocs-material-
45
47
- run: pip install mkdocs-material # (3)!
46
48
- run: mkdocs gh-deploy --force
47
49
```
@@ -81,10 +83,12 @@ contents:
81
83
- uses: actions/setup-python@v4
82
84
with:
83
85
python-version: 3.x
84
- - uses: actions/cache@v2
86
+ - uses: actions/cache@v3
85
87
with:
86
- key: ${{ github.ref }}
88
+ key: mkdocs-material- ${{ github.sha }}
87
89
path: .cache
90
+ restore-keys: |
91
+ mkdocs-material-
88
92
- run: apt-get install pngquant # (1)!
89
93
- run: pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
90
94
- run: mkdocs gh-deploy --force
Original file line number Diff line number Diff line change @@ -484,27 +484,29 @@ carried out. You might want to:
484
484
` .cache` directory in between builds. Taking the example from the
485
485
[publishing guide], add the following lines :
486
486
487
- ` ` ` yaml hl_lines="15-18 "
487
+ ` ` ` yaml hl_lines="15-20 "
488
488
name: ci
489
489
on:
490
490
push:
491
491
branches:
492
492
- master
493
493
- main
494
- jobs:
495
- deploy:
496
- runs-on: ubuntu-latest
497
- steps:
498
- - uses: actions/checkout@v2
499
- - uses: actions/setup-python@v2
500
- with:
501
- python-version: 3.x
502
- - uses: actions/cache@v2
503
- with:
504
- key: ${{ github.ref }}
505
- path: .cache
506
- - run: pip install mkdocs-material
507
- - run: mkdocs gh-deploy --force
494
+ jobs:
495
+ deploy:
496
+ runs-on: ubuntu-latest
497
+ steps:
498
+ - uses: actions/checkout@v3
499
+ - uses: actions/setup-python@v4
500
+ with:
501
+ python-version: 3.x
502
+ - uses: actions/cache@v3
503
+ with:
504
+ key: mkdocs-material-${{ github.sha }}
505
+ path: .cache
506
+ restore-keys: |
507
+ mkdocs-material-
508
+ - run: pip install mkdocs-material
509
+ - run: mkdocs gh-deploy --force
508
510
` ` `
509
511
510
512
[publishing guide] : ../publishing-your-site.md#with-github-actions
Original file line number Diff line number Diff line change @@ -232,27 +232,29 @@ whether the social cards need to be regenerated. You might want to:
232
232
` .cache` directory in between builds. Taking the example from the
233
233
[publishing guide], add the following lines :
234
234
235
- ` ` ` yaml hl_lines="15-18 "
235
+ ` ` ` yaml hl_lines="15-20 "
236
236
name: ci
237
237
on:
238
238
push:
239
239
branches:
240
240
- master
241
241
- main
242
- jobs:
243
- deploy:
244
- runs-on: ubuntu-latest
245
- steps:
246
- - uses: actions/checkout@v2
247
- - uses: actions/setup-python@v2
248
- with:
249
- python-version: 3.x
250
- - uses: actions/cache@v2
251
- with:
252
- key: ${{ github.ref }}
253
- path: .cache
254
- - run: pip install mkdocs-material
255
- - run: mkdocs gh-deploy --force
242
+ jobs:
243
+ deploy:
244
+ runs-on: ubuntu-latest
245
+ steps:
246
+ - uses: actions/checkout@v3
247
+ - uses: actions/setup-python@v4
248
+ with:
249
+ python-version: 3.x
250
+ - uses: actions/cache@v3
251
+ with:
252
+ key: mkdocs-material-${{ github.sha }}
253
+ path: .cache
254
+ restore-keys: |
255
+ mkdocs-material-
256
+ - run: pip install mkdocs-material
257
+ - run: mkdocs gh-deploy --force
256
258
` ` `
257
259
258
260
[built-in social plugin] : # built-in-social-plugin
You can’t perform that action at this time.
0 commit comments