File tree Expand file tree Collapse file tree 3 files changed +34
-34
lines changed
Expand file tree Collapse file tree 3 files changed +34
-34
lines changed Original file line number Diff line number Diff line change 2828 # Build job
2929 build :
3030 runs-on : ubuntu-24.04
31- env :
32- HUGO_VERSION : 0.115.4
3331 steps :
3432 - uses : actions/checkout@v4
3533 with :
@@ -39,42 +37,15 @@ jobs:
3937 - uses : jdx/mise-action@7a111ead46986ccad89a74ad013ba2a7c08c9e67 # v2.1.1
4038 with :
4139 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
5242 with :
5343 permissions : block
5444 - name : Setup Pages
5545 id : pages
5646 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
7849 with :
7950 permissions : block
8051 - name : Upload artifact
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ version = "1.6.0"
33backend = "cargo:zizmor"
44
55[tools."go:github.com/gohugoio/hugo"]
6- version = "latest "
6+ version = "v0.147.0 "
77backend = "go:github.com/gohugoio/hugo"
88
99[tools."go:github.com/grafana/oats"]
@@ -14,6 +14,10 @@ backend = "go:github.com/grafana/oats"
1414version = "temurin-17.0.13+11"
1515backend = "core:java"
1616
17+ [tools.node]
18+ version = "23.10.0"
19+ backend = "core:node"
20+
1721[tools.protoc]
1822version = "30.2"
1923backend = "aqua:protocolbuffers/protobuf/protoc"
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ PROTO_GENERATION = "true"
66"go:github.com/gohugoio/hugo" = " latest"
77"go:github.com/grafana/oats" = " latest"
88java = " temurin-17.0.13+11"
9+ node = " latest"
910protoc = " latest"
1011
1112[tasks .ci ]
@@ -57,6 +58,30 @@ dir = "integration-tests/it-spring-boot-smoke-test"
5758[tasks .set-version ]
5859run = ' mvn versions:set -DnewVersion={{arg(name="version")}}'
5960
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+
6085[settings ]
6186# to get lock file support and for go backend
6287experimental = true
You can’t perform that action at this time.
0 commit comments