File tree 3 files changed +438
-16
lines changed
content/posts/introduction
3 files changed +438
-16
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,12 @@ jobs:
32
32
build :
33
33
runs-on : ubuntu-latest
34
34
env :
35
- HUGO_VERSION : 0.144.2
35
+ HUGO_VERSION : 0.145.0
36
36
steps :
37
37
- name : Install Hugo CLI
38
38
run : |
39
39
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
40
40
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
41
- - name : Install Dart Sass
42
- run : sudo snap install dart-sass
43
41
- name : Checkout
44
42
uses : actions/checkout@v4
45
43
with :
@@ -50,17 +48,29 @@ jobs:
50
48
uses : actions/configure-pages@v5
51
49
- name : Install Node.js dependencies
52
50
run : " [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
51
+ - name : Cache Restore
52
+ id : cache-restore
53
+ uses : actions/cache/restore@v4
54
+ with :
55
+ path : |
56
+ ${{ runner.temp }}/hugo_cache
57
+ key : hugo-${{ github.run_id }}
58
+ restore-keys :
59
+ hugo-
53
60
- name : Build with Hugo
54
- env :
55
- HUGO_CACHEDIR : ${{ runner.temp }}/hugo_cache
56
- HUGO_ENVIRONMENT : production
57
- TZ : Australia/Melbourne
58
61
run : |
59
62
hugo \
60
63
--gc \
61
64
--minify \
62
65
--source ./site \
63
66
--baseURL "${{ steps.pages.outputs.base_url }}/"
67
+ - name : Cache Save
68
+ id : cache-save
69
+ uses : actions/cache/save@v4
70
+ with :
71
+ path : |
72
+ ${{ runner.temp }}/hugo_cache
73
+ key : ${{ steps.cache-restore.outputs.cache-primary-key }}
64
74
- name : Upload artifact
65
75
uses : actions/upload-pages-artifact@v3
66
76
with :
You can’t perform that action at this time.
0 commit comments