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:
1616 # - 1.18beta1 -> 1.18.0-beta.1
1717 # - 1.18rc1 -> 1.18.0-rc.1
1818 GO_VERSION : ' 1.24'
19- NODE_VERSION : ' 20.x '
19+ HUGO_VERSION : 0.148.1
2020 CGO_ENABLED : 0
2121 steps :
2222 - uses : actions/checkout@v4
2323 - uses : actions/setup-go@v5
2424 with :
2525 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
3226
3327 - run : go mod download
3428
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
3733
3834 - name : Build Documentation
35+ env :
36+ # For maximum backward compatibility with Hugo modules
37+ HUGO_ENVIRONMENT : production
38+ HUGO_ENV : production
3939 working-directory : ./docs
40- run : npm run build
40+ run : |
41+ hugo \
42+ --gc --minify \
43+ --baseURL "https://golangci-lint.run/"
4144
4245 - name : Deploy to GitHub Pages
4346 uses : peaceiris/actions-gh-pages@v4
Original file line number Diff line number Diff line change @@ -14,26 +14,29 @@ jobs:
1414 # - 1.18beta1 -> 1.18.0-beta.1
1515 # - 1.18rc1 -> 1.18.0-rc.1
1616 GO_VERSION : ' 1.24'
17- NODE_VERSION : ' 20.x '
17+ HUGO_VERSION : 0.148.1
1818 CGO_ENABLED : 0
1919
2020 steps :
2121 - uses : actions/checkout@v4
2222 - uses : actions/setup-go@v5
2323 with :
2424 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
3125
3226 - run : go mod download
3327
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
3632
3733 - 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
3938 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