Skip to content

Commit 26d0bd5

Browse files
committed
chore: update CI workflows
1 parent ccb8614 commit 26d0bd5

File tree

4 files changed

+8
-21
lines changed

4 files changed

+8
-21
lines changed

.github/workflows/deploy-documentation.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,8 @@ jobs:
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

.github/workflows/pr-documentation.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,4 @@ jobs:
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

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
112116
docs/static/demo.gif: FORCE
113117
vhs docs/golangci-lint.tape
114118

docs/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ clean:
88
serve: clean
99
hugo server --disableFastRender --buildDrafts --enableGitInfo
1010

11+
# IMPORTANT used by the CI to deploy documentation
1112
build: clean
1213
HUGO_ENVIRONMENT=production \
1314
HUGO_ENV=production \
1415
hugo \
16+
--gc --minify \
1517
--baseURL "https://golangci-lint.run/"

0 commit comments

Comments
 (0)