File tree Expand file tree Collapse file tree 4 files changed +54
-4
lines changed Expand file tree Collapse file tree 4 files changed +54
-4
lines changed Original file line number Diff line number Diff line change 1515 push :
1616 branches :
1717 - master
18+ paths-ignore :
19+ - ' .github/**'
20+ - ' docker/**'
21+ - ' docs/**'
22+ - ' tutorial/**'
23+ - ' ChangeLog.md'
24+ - ' README.md'
1825 pull_request :
1926 types : [ opened, synchronize, reopened ]
2027 branches :
2128 - master
29+ - main
2230 - v7
2331 - v6
2432 schedule :
Original file line number Diff line number Diff line change 1- name : Publish
1+ name : Deploy
22
33on :
44 workflow_dispatch :
55 push :
6- tags : [ v ** ]
6+ tags : [ deploy ** ]
77
88jobs :
9- verify :
9+ deploy :
1010 timeout-minutes : 20
1111 runs-on : ubuntu-latest
1212
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ tags : [ release** ]
7+
8+ jobs :
9+ release :
10+ timeout-minutes : 20
11+ runs-on : ubuntu-latest
12+
13+ strategy :
14+ fail-fast : false
15+
16+ steps :
17+ - uses : actions/checkout@v2
18+ - name : Set up JDK
19+ uses : actions/setup-java@v3
20+ with :
21+ java-version : ' 8'
22+ distribution : ' adopt'
23+ cache : ' maven'
24+ server-id : ossrh
25+ server-username : MAVEN_USERNAME
26+ server-password : MAVEN_CENTRAL_TOKEN
27+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
28+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
29+ - name : Release to Apache Maven Central
30+ run : mvn -Ddeploy -Dmaven.test.skip=true nexus-staging:release
31+ env :
32+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
33+ MAVEN_CENTRAL_TOKEN : ${{ secrets.OSSRH_PASSWORD }}
34+ MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 1- name : Java CI
1+ name : Test
22
33on :
44 push :
55 branches :
66 - master
7+ paths-ignore :
8+ - ' .github/**'
9+ - ' docker/**'
10+ - ' docs/**'
11+ - ' tutorial/**'
12+ - ' ChangeLog.md'
13+ - ' README.md'
714 pull_request :
815 types : [ opened, synchronize, reopened ]
916 branches :
1017 - master
18+ - main
1119 - v7
1220 - v6
1321
You can’t perform that action at this time.
0 commit comments