File tree Expand file tree Collapse file tree 4 files changed +8
-21
lines changed Expand file tree Collapse file tree 4 files changed +8
-21
lines changed Original file line number Diff line number Diff line change 3131 wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
3232 && sudo dpkg -i ${{ runner.temp }}/hugo.deb
3333
34- - name : Build Documentation assets
35- run : make website_copy_jsonschema website_expand_templates
36-
3734 - name : Build Documentation
38- env :
39- # For maximum backward compatibility with Hugo modules
40- HUGO_ENVIRONMENT : production
41- HUGO_ENV : production
42- working-directory : ./docs
43- run : |
44- hugo \
45- --gc --minify \
46- --baseURL "https://golangci-lint.run/"
35+ run : make docs_build
4736
4837 - name : Deploy to GitHub Pages
4938 uses : peaceiris/actions-gh-pages@v4
Original file line number Diff line number Diff line change 3131 && sudo dpkg -i ${{ runner.temp }}/hugo.deb
3232
3333 - name : Build Documentation
34- env :
35- # For maximum backward compatibility with Hugo modules
36- HUGO_ENVIRONMENT : production
37- HUGO_ENV : production
38- working-directory : ./docs
39- run : |
40- hugo \
41- --gc --minify \
42- --baseURL "https://golangci-lint.run/"
34+ run : make docs_build
Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ docs_clean:
109109 @make -C ./docs clean
110110.PHONY : docs_clean
111111
112+ docs_build : website_copy_jsonschema website_expand_templates
113+ @make -C ./docs build
114+ .PHONY : docs_build
115+
112116docs/static/demo.gif : FORCE
113117 vhs docs/golangci-lint.tape
114118
Original file line number Diff line number Diff line change 88serve : clean
99 hugo server --disableFastRender --buildDrafts --enableGitInfo
1010
11+ # IMPORTANT used by the CI to deploy documentation
1112build : clean
1213 HUGO_ENVIRONMENT=production \
1314 HUGO_ENV=production \
1415 hugo \
16+ --gc --minify \
1517 --baseURL " https://golangci-lint.run/"
You can’t perform that action at this time.
0 commit comments