Skip to content

Commit d857d81

Browse files
authored
Update build.yml
1 parent 9b4864f commit d857d81

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
uses: actions/setup-node@v4
1818
with:
1919
node-version: '22.x'
20+
cache: 'npm'
2021
- name: Set up JDK 21
2122
uses: actions/setup-java@v4
2223
with:
@@ -25,3 +26,12 @@ jobs:
2526
cache: maven
2627
- name: Build with Maven
2728
run: mvn -B package --file pom.xml
29+
- name: PMD with Maven
30+
run: mvn pmd:pmd --file pom.xml
31+
32+
- name: Deploy Nexus
33+
if: ${{ github.ref == 'refs/heads/main' }}
34+
run: mvn -B source:jar deploy --file pom.xml -DskipTests
35+
env:
36+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
37+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

0 commit comments

Comments
 (0)