File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1- # Deploy snapshots to Sonatype OSS repository and deploy site to GitHub Pages
1+ # Deploy snapshots to Sonatype OSS repository
22
33name : Deploy
44
5+ concurrency : ${{ github.workflow }}
6+
57on :
68 push :
79 branches :
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 }}
You can’t perform that action at this time.
0 commit comments