Skip to content

Commit ecab1de

Browse files
committed
switch to github actions with pinned versions
1 parent 7cf975e commit ecab1de

2 files changed

Lines changed: 9 additions & 24 deletions

File tree

.github/workflows/maven-build.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,7 @@ jobs:
2020
distribution: [temurin]
2121

2222
steps:
23-
- name: Checkout code
24-
uses: actions/checkout@v6
25-
26-
- name: Setup JDK
27-
uses: actions/setup-java@v5
23+
- name: Maven Build
24+
uses: wcm-io-devops/github-action-maven-build@v1
2825
with:
29-
distribution: ${{ matrix.distribution }}
3026
java-version: ${{ matrix.java }}
31-
cache: maven
32-
33-
- name: Build and verify
34-
run: mvn -s ./.maven-settings.xml -Pcontinuous-integration -B -U clean verify

.github/workflows/maven-deploy.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# Deploy snapshots to Sonatype OSS repository and deploy site to GitHub Pages
1+
# Deploy snapshots to Sonatype OSS repository
22

33
name: Deploy
44

5+
concurrency: ${{ github.workflow }}
6+
57
on:
68
push:
79
branches:
@@ -14,18 +16,9 @@ jobs:
1416
runs-on: ubuntu-latest
1517

1618
steps:
17-
- name: Checkout code
18-
uses: actions/checkout@v6
19-
20-
- name: Setup JDK
21-
uses: actions/setup-java@v5
19+
- name: Maven Deploy
20+
uses: wcm-io-devops/github-action-maven-deploy@v1
2221
with:
23-
distribution: temurin
2422
java-version: 21
25-
cache: maven
26-
27-
- name: Build, verify, deploy
28-
env:
29-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
30-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
31-
run: mvn -s ./.maven-settings.xml -Pcontinuous-integration -B -U clean deploy
23+
sonatype-username: ${{ secrets.SONATYPE_USERNAME }}
24+
sonatype-password: ${{ secrets.SONATYPE_PASSWORD }}

0 commit comments

Comments
 (0)