File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Deploy Snapshot
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ - " 3.0"
7
+ - " 2.13"
8
+ paths-ignore :
9
+ - " README.md"
10
+ - " release-notes/*"
11
+ pull_request :
12
+ branches :
13
+ - master
14
+ paths-ignore :
15
+ - " README.md"
16
+ - " release-notes/*"
17
+ jobs :
18
+ build :
19
+ runs-on : ${{ matrix.os }}
20
+ strategy :
21
+ fail-fast : false
22
+ matrix :
23
+ java_version : ['8', '11', '14']
24
+ os : ['ubuntu-20.04']
25
+ env :
26
+ JAVA_OPTS : " -XX:+TieredCompilation -XX:TieredStopAtLevel=1"
27
+ steps :
28
+ - uses : actions/checkout@v2
29
+ - name : Set up JDK
30
+ uses : actions/setup-java@v2
31
+ with :
32
+ distribution : " adopt"
33
+ java-version : ${{ matrix.java_version }}
34
+ server-id : sonatype-nexus-snapshots
35
+ server-username : CI_DEPLOY_USERNAME
36
+ server-password : CI_DEPLOY_PASSWORD
37
+ - uses : actions/cache@v2.1.6
38
+ with :
39
+ path : ~/.m2/repository
40
+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
41
+ restore-keys : |
42
+ ${{ runner.os }}-maven-
43
+ - name : Build
44
+ run : ./mvnw -V -B -ff -ntp verify
45
+ - name : Deploy snapshot
46
+ if : github.event_name != 'pull_request' && matrix.java_version == '8'
47
+ env :
48
+ CI_DEPLOY_USERNAME : ${{ secrets.CI_DEPLOY_USERNAME }}
49
+ CI_DEPLOY_PASSWORD : ${{ secrets.CI_DEPLOY_PASSWORD }}
50
+ # MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
51
+ run : ./mvnw -V -B -ff -DskipTests -ntp source:jar deploy
You can’t perform that action at this time.
0 commit comments