Skip to content

Commit b407057

Browse files
authored
Create maven_deploy.yml
1 parent a70f0d1 commit b407057

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/maven_deploy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: deploy to sonatype snapshots
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
java: [8]
13+
name: Java ${{ matrix.java }} building ...
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Java ${{ matrix.java }}
18+
uses: actions/setup-java@v3
19+
with:
20+
java-version: ${{ matrix.java }}
21+
distribution: 'temurin'
22+
cache: maven
23+
server-id: sonatype-nexus-snapshots
24+
server-username: MAVEN_USERNAME
25+
server-password: MAVEN_PASSWORD
26+
- name: Build with Maven
27+
run: mvn -B deploy --file pom.xml -DdisableXmlReport=true -Djacoco.skip=true -Dpmd.skip=true
28+
env:
29+
MAVEN_USERNAME: ${{ secrets.OSSRHUSERNAME }}
30+
MAVEN_PASSWORD: ${{ secrets.OSSRHPASSWORD }}

0 commit comments

Comments
 (0)