mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Merge pull request #5460 from kamilkrzyskow/cache-methodology-fix
Revert cache to use `github.ref` instead of `github.sha`
This commit is contained in:
commit
f08bbb4dec
2
.github/workflows/documentation.yml
vendored
2
.github/workflows/documentation.yml
vendored
@ -50,7 +50,7 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
id: cache
|
id: cache
|
||||||
with:
|
with:
|
||||||
key: mkdocs-material-${{ github.sha }}
|
key: mkdocs-material-${{ github.ref }}
|
||||||
path: .cache
|
path: .cache
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
mkdocs-material-
|
mkdocs-material-
|
||||||
|
@ -40,11 +40,11 @@ contents:
|
|||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
key: mkdocs-material-${{ github.sha }}
|
key: mkdocs-material-${{ github.ref }} # (3)!
|
||||||
path: .cache
|
path: .cache
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
mkdocs-material-
|
mkdocs-material-
|
||||||
- run: pip install mkdocs-material # (3)!
|
- run: pip install mkdocs-material # (4)!
|
||||||
- run: mkdocs gh-deploy --force
|
- run: mkdocs gh-deploy --force
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -53,7 +53,10 @@ contents:
|
|||||||
2. At some point, GitHub renamed `master` to `main`. If your default branch
|
2. At some point, GitHub renamed `master` to `main`. If your default branch
|
||||||
is named `master`, you can safely remove `main`, vice versa.
|
is named `master`, you can safely remove `main`, vice versa.
|
||||||
|
|
||||||
3. This is the place to install further [MkDocs plugins] or Markdown
|
3. The `github.ref` property assures that the cache will
|
||||||
|
update on each pull request merge.
|
||||||
|
|
||||||
|
4. This is the place to install further [MkDocs plugins] or Markdown
|
||||||
extensions with `pip` to be used during the build:
|
extensions with `pip` to be used during the build:
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
@ -85,7 +88,7 @@ contents:
|
|||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
key: mkdocs-material-${{ github.sha }}
|
key: mkdocs-material-${{ github.ref }}
|
||||||
path: .cache
|
path: .cache
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
mkdocs-material-
|
mkdocs-material-
|
||||||
|
@ -501,7 +501,7 @@ carried out. You might want to:
|
|||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
key: mkdocs-material-${{ github.sha }}
|
key: mkdocs-material-${{ github.ref }}
|
||||||
path: .cache
|
path: .cache
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
mkdocs-material-
|
mkdocs-material-
|
||||||
|
@ -249,7 +249,7 @@ whether the social cards need to be regenerated. You might want to:
|
|||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
key: mkdocs-material-${{ github.sha }}
|
key: mkdocs-material-${{ github.ref }}
|
||||||
path: .cache
|
path: .cache
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
mkdocs-material-
|
mkdocs-material-
|
||||||
|
Loading…
Reference in New Issue
Block a user