File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,15 +39,17 @@ jobs:
3939 - name : Build with Maven
4040 if : ${{ !startsWith(github.ref, 'refs/tags/v') }}
4141 run : mvn clean test -Pdebug -B -U -Dgpg.skip -Dmaven.javadoc.skip=true
42- - name : Deploy with Maven
43- if : ${{ startsWith(github.ref, 'refs/tags/v') }}
44- run : |
45- mvn deploy --settings .maven.xml -B -U -Possrh
46- mvn deploy --settings .maven.xml -B -U -Pgithub
42+ - name : Deploy with Maven to OSSRH
43+ run : mvn deploy --settings .maven.xml -B -U -Possrh
4744 env :
4845 SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
4946 SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
5047 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
48+ - name : Deploy with Maven to GitHub packages
49+ if : ${{ startsWith(github.ref, 'refs/tags/v') }}
50+ run : mvn deploy --settings .maven.xml -B -U -Pgithub
51+ env :
52+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
5153 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5254 - name : Create release
5355 if : ${{ startsWith(github.ref, 'refs/tags/v') }}
You can’t perform that action at this time.
0 commit comments