File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -31,30 +31,32 @@ jobs:
31
31
build :
32
32
runs-on : ubuntu-latest
33
33
env :
34
- HUGO_VERSION : 0.128.0
34
+ HUGO_VERSION : 0.132.2
35
35
steps :
36
- - name : Install Hugo CLI
37
- run : |
38
- wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
39
- && sudo dpkg -i ${{ runner.temp }}/hugo.deb
40
- - name : Install Dart Sass
41
- run : sudo snap install dart-sass
42
36
- name : Checkout
43
37
uses : actions/checkout@v4
44
38
with :
39
+ fetch-depth : 0 # fetch all history for .GitInfo and .Lastmod
45
40
submodules : recursive
41
+ - name : Setup Go
42
+ uses : actions/setup-go@v5
43
+ with :
44
+ go-version : ' 1.22'
46
45
- name : Setup Pages
47
46
id : pages
48
- uses : actions/configure-pages@v5
49
- - name : Install Node.js dependencies
50
- run : " [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
47
+ uses : actions/configure-pages@v4
48
+ - name : Setup Hugo
49
+ run : |
50
+ wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
51
+ && sudo dpkg -i ${{ runner.temp }}/hugo.deb
51
52
- name : Build with Hugo
52
53
env :
53
- HUGO_CACHEDIR : ${{ runner.temp }}/hugo_cache
54
+ # For maximum backward compatibility with Hugo modules
54
55
HUGO_ENVIRONMENT : production
56
+ HUGO_ENV : production
55
57
run : |
56
58
hugo \
57
- --minify \
59
+ --gc -- minify \
58
60
--baseURL "${{ steps.pages.outputs.base_url }}/"
59
61
- name : Upload artifact
60
62
uses : actions/upload-pages-artifact@v3
You can’t perform that action at this time.
0 commit comments