Commit 63e035f 1 parent 60deb2f commit 63e035f Copy full SHA for 63e035f
File tree 1 file changed +49
-0
lines changed
1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Build the docs"
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches : [ master ]
7
+
8
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9
+ permissions :
10
+ contents : read
11
+ pages : write
12
+ id-token : write
13
+
14
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16
+ concurrency :
17
+ group : " pages"
18
+ cancel-in-progress : false
19
+
20
+ jobs :
21
+ build-docs :
22
+ name : build-docs
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - uses : actions/checkout@v4
26
+ - name : Setup Java 11
27
+ uses : actions/setup-java@v2
28
+ with :
29
+ java-version : 11
30
+ distribution : " temurin"
31
+ - name : Build docs
32
+ run : |
33
+ mvn -Dprod site site:stage
34
+ - name : Upload Pages artifact
35
+ uses : actions/upload-pages-artifact@v2
36
+ with :
37
+ path : ./target/staging
38
+
39
+ # Deployment job
40
+ deploy :
41
+ environment :
42
+ name : github-pages
43
+ url : ${{ steps.deployment.outputs.page_url }}
44
+ runs-on : ubuntu-latest
45
+ needs : build-docs
46
+ steps :
47
+ - name : Deploy to GitHub Pages
48
+ id : deployment
49
+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments