File tree Expand file tree Collapse file tree 2 files changed +27
-3
lines changed
Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 1+ name : Publish package release to the Maven Central Repository
2+ on :
3+ release :
4+ types : [published]
5+
6+ jobs :
7+ publish :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v3
11+ - name : Set up Maven Central Repository
12+ uses : actions/setup-java@v3
13+ with :
14+ java-version : ' 17'
15+ distribution : ' adopt'
16+ server-id : ossrh
17+ server-username : MAVEN_USERNAME
18+ server-password : MAVEN_PASSWORD
19+ gpg-private-key : ${{ secrets.GPG_KEY }}
20+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
21+ - name : Publish package
22+ run : mvn clean deploy -P release
23+ env :
24+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
25+ MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
26+ MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 1- name : Publish package to the Maven Central Repository
1+ name : Publish package snapshot to the Maven Central Repository
22on :
3- release :
4- types : [created]
53 workflow_dispatch :
64
75jobs :
You can’t perform that action at this time.
0 commit comments