File tree 1 file changed +0
-53
lines changed
1 file changed +0
-53
lines changed Original file line number Diff line number Diff line change 5
5
branches : [ "master" ]
6
6
pull_request :
7
7
branches : [ "master" ]
8
- concurrency :
9
- group : github-pages
10
- cancel-in-progress : false
11
- permissions :
12
- contents : read
13
- pages : write
14
- id-token : write
15
8
jobs :
16
9
test :
17
10
runs-on : ubuntu-latest
18
11
steps :
19
12
- uses : actions/checkout@v4
20
- - run : sed -i 's|http://localhost:8080/|${{ secrets.TOMCAT_HOST }}|g' pom.xml
21
13
- name : Set up JDK 21
22
14
uses : actions/setup-java@v4
23
15
with :
26
18
cache : maven
27
19
- name : Test with Maven
28
20
run : mvn clean test --file pom.xml
29
- build :
30
- runs-on : ubuntu-latest
31
- needs : test
32
- steps :
33
- - uses : actions/checkout@v4
34
- - run : sed -i 's|http://localhost:8080/|${{ secrets.TOMCAT_HOST }}|g' pom.xml
35
- - name : Set up JDK 21
36
- uses : actions/setup-java@v4
37
- with :
38
- java-version : 21
39
- distribution : ' temurin'
40
- cache : maven
41
- - name : Deploy site
42
- run : mvn clean site --file pom.xml
43
- - name : Setup Pages
44
- uses : actions/configure-pages@v5
45
- - name : Upload Artifacts
46
- uses : actions/upload-pages-artifact@v3
47
- with :
48
- path : ./target/site
49
- - name : Deploy to GitHub Pages
50
- id : deployment
51
- uses : actions/deploy-pages@v4
52
- deploy :
53
- runs-on : ubuntu-latest
54
- needs : build
55
- permissions :
56
- contents : read
57
- packages : write
58
- steps :
59
- - uses : actions/checkout@v4
60
- - name : Set up Maven Central Repository
61
- uses : actions/setup-java@v4
62
- with :
63
- java-version : 21
64
- distribution : ' temurin'
65
- server-id : TomcatServer
66
- server-username : MAVEN_USERNAME
67
- server-password : MAVEN_PASSWORD
68
- - run : sed -i 's|http://localhost:8080/|${{ secrets.TOMCAT_HOST }}|g' pom.xml
69
- - name : Deploy package
70
- run : mvn clean --batch-mode tomcat7:deploy
71
- env :
72
- MAVEN_USERNAME : ${{ secrets.TOMCAT_USER }}
73
- MAVEN_PASSWORD : ${{ secrets.TOMCAT_PASS }}
You can’t perform that action at this time.
0 commit comments