File tree Expand file tree Collapse file tree 2 files changed +26
-20
lines changed Expand file tree Collapse file tree 2 files changed +26
-20
lines changed Original file line number Diff line number Diff line change @@ -16,28 +16,31 @@ jobs:
16
16
# - 1.18beta1 -> 1.18.0-beta.1
17
17
# - 1.18rc1 -> 1.18.0-rc.1
18
18
GO_VERSION : ' 1.24'
19
- NODE_VERSION : ' 20.x '
19
+ HUGO_VERSION : 0.148.1
20
20
CGO_ENABLED : 0
21
21
steps :
22
22
- uses : actions/checkout@v4
23
23
- uses : actions/setup-go@v5
24
24
with :
25
25
go-version : ${{ env.GO_VERSION }}
26
- - name : Use Node.js ${{ env.NODE_VERSION }}
27
- uses : actions/setup-node@v4
28
- with :
29
- node-version : ${{ env.NODE_VERSION }}
30
- cache : npm
31
- cache-dependency-path : docs/package-lock.json
32
26
33
27
- run : go mod download
34
28
35
- - run : npm install --legacy-peer-deps
36
- working-directory : ./docs
29
+ - name : Setup Hugo
30
+ run : |
31
+ wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
32
+ && sudo dpkg -i ${{ runner.temp }}/hugo.deb
37
33
38
34
- name : Build Documentation
35
+ env :
36
+ # For maximum backward compatibility with Hugo modules
37
+ HUGO_ENVIRONMENT : production
38
+ HUGO_ENV : production
39
39
working-directory : ./docs
40
- run : npm run build
40
+ run : |
41
+ hugo \
42
+ --gc --minify \
43
+ --baseURL "https://golangci-lint.run/"
41
44
42
45
- name : Deploy to GitHub Pages
43
46
uses : peaceiris/actions-gh-pages@v4
Original file line number Diff line number Diff line change @@ -14,26 +14,29 @@ jobs:
14
14
# - 1.18beta1 -> 1.18.0-beta.1
15
15
# - 1.18rc1 -> 1.18.0-rc.1
16
16
GO_VERSION : ' 1.24'
17
- NODE_VERSION : ' 20.x '
17
+ HUGO_VERSION : 0.148.1
18
18
CGO_ENABLED : 0
19
19
20
20
steps :
21
21
- uses : actions/checkout@v4
22
22
- uses : actions/setup-go@v5
23
23
with :
24
24
go-version : ${{ env.GO_VERSION }}
25
- - name : Use Node.js ${{ env.NODE_VERSION }}
26
- uses : actions/setup-node@v4
27
- with :
28
- node-version : ${{ env.NODE_VERSION }}
29
- cache : npm
30
- cache-dependency-path : docs/package-lock.json
31
25
32
26
- run : go mod download
33
27
34
- - run : npm install --legacy-peer-deps
35
- working-directory : ./docs
28
+ - name : Setup Hugo
29
+ run : |
30
+ wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
31
+ && sudo dpkg -i ${{ runner.temp }}/hugo.deb
36
32
37
33
- name : Build Documentation
38
- run : npm run build
34
+ env :
35
+ # For maximum backward compatibility with Hugo modules
36
+ HUGO_ENVIRONMENT : production
37
+ HUGO_ENV : production
39
38
working-directory : ./docs
39
+ run : |
40
+ hugo \
41
+ --gc --minify \
42
+ --baseURL "https://golangci-lint.run/"
You can’t perform that action at this time.
0 commit comments