File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -34,22 +34,29 @@ jobs:
34
34
steps :
35
35
- name : Install Hugo CLI
36
36
run : |
37
- wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit .deb \
37
+ wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64 .deb \
38
38
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
39
+ - name : Install Dart Sass
40
+ run : sudo snap install dart-sass
39
41
- name : Checkout
40
- uses : actions/checkout@v3
42
+ uses : actions/checkout@v4
41
43
with :
42
44
submodules : recursive
43
45
- name : Setup Pages
44
46
id : pages
45
- uses : actions/configure-pages@v1
47
+ uses : actions/configure-pages@v5
46
48
- name : Install dependencies
47
49
run : npm install
50
+ - name : Install Node.js dependencies
51
+ run : " [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
48
52
- name : Build with Hugo
53
+ env :
54
+ HUGO_CACHEDIR : ${{ runner.temp }}/hugo_cache
55
+ HUGO_ENVIRONMENT : production
49
56
run : |
50
57
hugo \
51
- --minify -- gc --minify \
52
- --baseURL ${{ steps.pages.outputs.base_url }}
58
+ --gc --minify \
59
+ --baseURL " ${{ steps.pages.outputs.base_url }}"
53
60
- name : Upload artifact
54
61
uses : actions/upload-pages-artifact@v1
55
62
with :
You can’t perform that action at this time.
0 commit comments