Skip to content

Commit f7d9d35

Browse files
committed
Reuse plexus-pom action for CI
1 parent 265f2a3 commit f7d9d35

File tree

1 file changed

+8
-29
lines changed

1 file changed

+8
-29
lines changed

.github/workflows/maven.yml

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,11 @@ on: [push, pull_request]
2121

2222
jobs:
2323
build:
24-
25-
strategy:
26-
matrix:
27-
os: [ubuntu-latest,windows-latest, macOS-latest]
28-
java: [8, 11, 17]
29-
fail-fast: false
30-
31-
runs-on: ${{ matrix.os }}
32-
33-
steps:
34-
- name: Checkout
35-
uses: actions/checkout@v4
36-
37-
- name: Set up cache for ~./m2/repository
38-
uses: actions/cache@v3
39-
with:
40-
path: ~/.m2/repository
41-
key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
42-
restore-keys: |
43-
maven-${{ matrix.os }}-java${{ matrix.java }}-
44-
maven-${{ matrix.os }}-
45-
- name: Set up JDK
46-
uses: actions/setup-java@v4
47-
with:
48-
distribution: 'adopt'
49-
java-version: ${{ matrix.java }}
50-
51-
- name: Build with Maven
52-
run: mvn install javadoc:javadoc -e -B -V
24+
name: Build it
25+
uses: codehaus-plexus/.github/.github/workflows/maven.yml@master
26+
27+
deploy:
28+
name: Deploy
29+
needs: build
30+
uses: codehaus-plexus/.github/.github/workflows/maven-deploy.yml@master
31+
secrets: inherit

0 commit comments

Comments
 (0)