File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
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 }}
You can’t perform that action at this time.
0 commit comments