Skip to content

Commit df84be9

Browse files
authored
Update maven.yml
1 parent 375e44c commit df84be9

File tree

1 file changed

+0
-53
lines changed

1 file changed

+0
-53
lines changed

.github/workflows/maven.yml

-53
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,11 @@ on:
55
branches: [ "master" ]
66
pull_request:
77
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
158
jobs:
169
test:
1710
runs-on: ubuntu-latest
1811
steps:
1912
- uses: actions/checkout@v4
20-
- run: sed -i 's|http://localhost:8080/|${{ secrets.TOMCAT_HOST }}|g' pom.xml
2113
- name: Set up JDK 21
2214
uses: actions/setup-java@v4
2315
with:
@@ -26,48 +18,3 @@ jobs:
2618
cache: maven
2719
- name: Test with Maven
2820
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 }}

0 commit comments

Comments
 (0)