File tree Expand file tree Collapse file tree 4 files changed +40
-4
lines changed Expand file tree Collapse file tree 4 files changed +40
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : Hugo Build Test
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ build :
8
+ runs-on : ubuntu-24.04
9
+
10
+ steps :
11
+ - name : Checkout docs content
12
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.7.1
13
+ with :
14
+ fetch-depth : 0 # This is required for hugo Lastmod to function properly
15
+
16
+ # ## Hugo builds
17
+
18
+ - name : Setup Go
19
+ uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
20
+ with :
21
+ go-version : ' latest'
22
+
23
+ - name : Setup Hugo
24
+ uses : peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
25
+ with :
26
+ hugo-version : ' latest'
27
+ extended : true
28
+
29
+ - name : Build Hugo
30
+ run : |
31
+ make build-example-site
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ list help::
13
13
@echo " biome-all: Runs both the lint and formatting commands."
14
14
@echo " (Set BIOME_ARGS to add additional arguments to biome command (ex: make biome-all BIOME_ARGS=write))"
15
15
16
- .PHONY : biome-format biome-lint biome-all setup-pre-commit
16
+ .PHONY : biome-format biome-lint biome-all setup-pre-commit build-example-site
17
17
BIOME_ARGS ?=
18
18
FLAG :=
19
19
ifeq ($(BIOME_ARGS ) , write)
@@ -36,3 +36,6 @@ setup-pre-commit:
36
36
pre-commit install --hook-type commit-msg; \
37
37
echo " pre-commit hooks have been successfully installed." ; \
38
38
fi
39
+
40
+ build-example-site :
41
+ cd exampleSite && hugo mod get && hugo build --gc -e production
Original file line number Diff line number Diff line change 22
22
" **/coveo.css" ,
23
23
" **/f5-hugo.css" ,
24
24
" **/highlight.css" ,
25
- " **/*-overrides.css"
25
+ " **/*-overrides.css" ,
26
+
27
+ " exampleSite"
26
28
]
27
29
},
28
30
"formatter" : {
Original file line number Diff line number Diff line change 1
1
module github.com/nginxinc/docs
2
2
3
- go 1.19
3
+ go 1.23
4
4
5
- require github.com/nginxinc/nginx-hugo-theme v0.41.22 // indirect
5
+ require github.com/nginxinc/nginx-hugo-theme v0.41.27 // indirect
6
6
7
7
replace github.com/nginxinc/nginx-hugo-theme => ../
You can’t perform that action at this time.
0 commit comments