Skip to content

Commit 4da9d80

Browse files
Updated GitHub Action template (#8327)
1 parent 639254a commit 4da9d80

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

docs/publishing-your-site.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ contents:
4646
- uses: actions/cache@v4
4747
with:
4848
key: mkdocs-material-${{ env.cache_id }}
49-
path: .cache # (4)!
49+
path: ~/.cache # (4)!
5050
restore-keys: |
5151
mkdocs-material-
5252
- run: pip install mkdocs-material # (5)!
@@ -68,7 +68,7 @@ contents:
6868
You can read the [manual page] to learn more about the formatting options of the `date` command.
6969

7070
4. Some Material for MkDocs plugins use [caching] to speed up repeated
71-
builds, and store the results in the `.cache` directory.
71+
builds, and store the results in the `~/.cache` directory.
7272

7373
5. This is the place to install further [MkDocs plugins] or Markdown
7474
extensions with `pip` to be used during the build:
@@ -108,7 +108,7 @@ contents:
108108
- uses: actions/cache@v4
109109
with:
110110
key: mkdocs-material-${{ env.cache_id }}
111-
path: .cache # (1)!
111+
path: ~/.cache # (1)!
112112
restore-keys: |
113113
mkdocs-material-
114114
- run: apt-get install pngquant # (2)!
@@ -119,7 +119,7 @@ contents:
119119
```
120120

121121
1. Some Material for MkDocs plugins use [caching] to speed up repeated
122-
builds, and store the results in the `.cache` directory.
122+
builds, and store the results in the `~/.cache` directory.
123123

124124
2. This step is only necessary if you want to use the
125125
[built-in optimize plugin] to automatically compress images.
@@ -187,17 +187,16 @@ contents:
187187
cache:
188188
key: ${CI_COMMIT_REF_SLUG}
189189
paths:
190-
- .cache/ # (1)!
190+
- ~/.cache/ # (1)!
191191
artifacts:
192192
paths:
193193
- public
194194
rules:
195195
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
196-
197196
```
198197

199198
1. Some Material for MkDocs plugins use [caching] to speed up repeated
200-
builds, and store the results in the `.cache` directory.
199+
builds, and store the results in the `~/.cache` directory.
201200

202201
=== "Insiders"
203202

@@ -211,7 +210,7 @@ contents:
211210
cache:
212211
key: ${CI_COMMIT_REF_SLUG}
213212
paths:
214-
- .cache/ # (2)!
213+
- ~/.cache/ # (2)!
215214
artifacts:
216215
paths:
217216
- public
@@ -224,7 +223,7 @@ contents:
224223
using [masked custom variables].
225224

226225
2. Some Material for MkDocs plugins use [caching] to speed up repeated
227-
builds, and store the results in the `.cache` directory.
226+
builds, and store the results in the `~/.cache` directory.
228227

229228
Now, when a new commit is pushed to the [default branch] (typically `master` or
230229
`main`), the static site is automatically built and deployed. Commit and push

0 commit comments

Comments
 (0)