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 31
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
32
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
33
33
34
- - name : Build Documentation assets
35
- run : make website_copy_jsonschema website_expand_templates
36
-
37
34
- 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
47
36
48
37
- name : Deploy to GitHub Pages
49
38
uses : peaceiris/actions-gh-pages@v4
Original file line number Diff line number Diff line change 31
31
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
32
32
33
33
- 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:
109
109
@make -C ./docs clean
110
110
.PHONY : docs_clean
111
111
112
+ docs_build : website_copy_jsonschema website_expand_templates
113
+ @make -C ./docs build
114
+ .PHONY : docs_build
115
+
112
116
docs/static/demo.gif : FORCE
113
117
vhs docs/golangci-lint.tape
114
118
Original file line number Diff line number Diff line change 8
8
serve : clean
9
9
hugo server --disableFastRender --buildDrafts --enableGitInfo
10
10
11
+ # IMPORTANT used by the CI to deploy documentation
11
12
build : clean
12
13
HUGO_ENVIRONMENT=production \
13
14
HUGO_ENV=production \
14
15
hugo \
16
+ --gc --minify \
15
17
--baseURL " https://golangci-lint.run/"
You can’t perform that action at this time.
0 commit comments