File tree 3 files changed +34
-34
lines changed
3 files changed +34
-34
lines changed Original file line number Diff line number Diff line change 28
28
# Build job
29
29
build :
30
30
runs-on : ubuntu-24.04
31
- env :
32
- HUGO_VERSION : 0.115.4
33
31
steps :
34
32
- uses : actions/checkout@v4
35
33
with :
@@ -39,42 +37,15 @@ jobs:
39
37
- uses : jdx/mise-action@7a111ead46986ccad89a74ad013ba2a7c08c9e67 # v2.1.1
40
38
with :
41
39
cache : ' false'
42
- - name : Set release version
43
- run : ./scripts/set-release-version-github-pages.sh
44
- with :
45
- permissions : block
46
- - name : Make Javadoc
47
- run : ./mvnw -B clean compile javadoc:javadoc javadoc:aggregate -P javadoc
48
- with :
49
- permissions : block
50
- - name : Move the Javadoc to docs/static/api/
51
- run : mv ./target/reports/apidocs ./docs/static/api && echo && echo 'ls ./docs/static/api' && ls ./docs/static/api
40
+ - name : Prepare GitHub Pages
41
+ run : mise run prepare-gh-pages
52
42
with :
53
43
permissions : block
54
44
- name : Setup Pages
55
45
id : pages
56
46
uses : actions/configure-pages@v5
57
- - name : Install Node.js dependencies
58
- run : " [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
59
- with :
60
- permissions : block
61
- working-directory : ./docs
62
- - name : Build with Hugo
63
- env :
64
- # For maximum backward compatibility with Hugo modules
65
- HUGO_ENVIRONMENT : production
66
- HUGO_ENV : production
67
- BASE_URL : " ${{ steps.pages.outputs.base_url }}"
68
- run : |
69
- hugo \
70
- --gc \
71
- --minify \
72
- --baseURL "${BASE_URL}/"
73
- with :
74
- permissions : block
75
- working-directory : ./docs
76
- - name : ls ./docs/public/api
77
- run : echo 'ls ./docs/public/api' && ls ./docs/public/api
47
+ - name : Build GitHub Pages
48
+ run : mise run build-gh-pages
78
49
with :
79
50
permissions : block
80
51
- name : Upload artifact
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ version = "1.6.0"
3
3
backend = "cargo:zizmor"
4
4
5
5
[tools."go:github.com/gohugoio/hugo"]
6
- version = "latest "
6
+ version = "v0.147.0 "
7
7
backend = "go:github.com/gohugoio/hugo"
8
8
9
9
[tools."go:github.com/grafana/oats"]
@@ -14,6 +14,10 @@ backend = "go:github.com/grafana/oats"
14
14
version = "temurin-17.0.13+11"
15
15
backend = "core:java"
16
16
17
+ [tools.node]
18
+ version = "23.10.0"
19
+ backend = "core:node"
20
+
17
21
[tools.protoc]
18
22
version = "30.2"
19
23
backend = "aqua:protocolbuffers/protobuf/protoc"
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ PROTO_GENERATION = "true"
6
6
"go:github.com/gohugoio/hugo" = " latest"
7
7
"go:github.com/grafana/oats" = " latest"
8
8
java = " temurin-17.0.13+11"
9
+ node = " latest"
9
10
protoc = " latest"
10
11
11
12
[tasks .ci ]
@@ -57,6 +58,30 @@ dir = "integration-tests/it-spring-boot-smoke-test"
57
58
[tasks .set-version ]
58
59
run = ' mvn versions:set -DnewVersion={{arg(name="version")}}'
59
60
61
+ [tasks .javadoc ]
62
+ run = [
63
+ " ./mvnw -B clean compile javadoc:javadoc javadoc:aggregate -P javadoc" ,
64
+ " mv ./target/reports/apidocs ./docs/static/api && echo && echo 'ls ./docs/static/api' && ls ./docs/static/api"
65
+ ]
66
+
67
+ [tasks .set-gh-pages-version ]
68
+ run = " ./scripts/set-release-version-github-pages.sh"
69
+
70
+ [tasks .prepare-gh-pages ]
71
+ description = " Prepare GitHub pages"
72
+ depends = [" javadoc" , " set-gh-pages-version" ]
73
+
74
+ [tasks .build-gh-pages ]
75
+ description = " Build GitHub pages"
76
+ # For maximum backward compatibility with Hugo modules
77
+ env = { HUGO_ENVIRONMENT = " production" , HUGO_ENV = " production" }
78
+ dir = " docs"
79
+ run = [
80
+ " npm ci" ,
81
+ " hugo --gc --minify --baseURL ${BASE_URL}/" ,
82
+ " echo 'ls ./docs/public/api' && ls ./docs/public/api"
83
+ ]
84
+
60
85
[settings ]
61
86
# to get lock file support and for go backend
62
87
experimental = true
You can’t perform that action at this time.
0 commit comments