File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-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+ name : Java CI with Maven
4+
5+ on :
6+ push :
7+ tags :
8+ - ' v*.*.*'
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v2
14+ - name : Set up Maven Central Repository
15+ uses : actions/setup-java@v3
16+ with :
17+ distribution : ' temurin'
18+ java-version : 8
19+ server-id : ossrh
20+ server-username : MAVEN_USERNAME
21+ server-password : MAVEN_PASSWORD
22+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
23+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
24+ - name : Deploy with Maven
25+ run : mvn -B clean deploy -DskipTests -Pci-cd
26+ env :
27+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
28+ MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
29+ MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
You can’t perform that action at this time.
0 commit comments