File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build a Java project with Maven
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+ name : Maven Package
5+
6+ on :
7+ release :
8+ types : [created]
9+
10+ jobs :
11+ publish :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Set up Maven Central Repository
16+ uses : actions/setup-java@v2
17+ with :
18+ java-version : ' 8'
19+ distribution : ' adopt'
20+ server-id : ossrh
21+ server-username : MAVEN_USERNAME
22+ server-password : MAVEN_PASSWORD
23+ - id : install-secret-key
24+ name : Install gpg secret key
25+ run : |
26+ cat <(echo -e "${{ secrets.GPG_SECRET_KEY }}") | gpg --batch --import
27+ gpg --list-secret-keys --keyid-format LONG
28+ - name : Publish package
29+ env :
30+ MAVEN_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
31+ MAVEN_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
32+ run : mvn --no-transfer-progress --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} clean deploy
You can’t perform that action at this time.
0 commit comments