File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -181,13 +181,21 @@ contents:
181
181
script:
182
182
- pip install mkdocs-material
183
183
- mkdocs build --site-dir public
184
+ cache:
185
+ key: ${CI_COMMIT_REF_SLUG}
186
+ paths:
187
+ - .cache/ # (1)!
184
188
artifacts:
185
189
paths:
186
190
- public
187
191
rules:
188
192
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
193
+
189
194
```
190
195
196
+ 1. Some Material for MkDocs plugins use [caching] to speed up repeated
197
+ builds, and store the results in the `.cache` directory.
198
+
191
199
=== "Insiders"
192
200
193
201
``` yaml
@@ -197,6 +205,10 @@ contents:
197
205
script: # (1)!
198
206
- pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
199
207
- mkdocs build --site-dir public
208
+ cache:
209
+ key: ${CI_COMMIT_REF_SLUG}
210
+ paths:
211
+ - .cache/ # (2)!
200
212
artifacts:
201
213
paths:
202
214
- public
@@ -208,6 +220,9 @@ contents:
208
220
[personal access token] when deploying [Insiders], which can be done
209
221
using [masked custom variables].
210
222
223
+ 2. Some Material for MkDocs plugins use [caching] to speed up repeated
224
+ builds, and store the results in the `.cache` directory.
225
+
211
226
Now, when a new commit is pushed to the [ default branch] (typically ` master ` or
212
227
` main ` ), the static site is automatically built and deployed. Commit and push
213
228
the file to your repository to see the workflow in action.
You can’t perform that action at this time.
0 commit comments