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,10 +39,17 @@ jobs:
3939 cache : maven
4040 server-id : central
4141 server-username : CENTRAL_USERNAME
42- server-password : CENTRAL_PASSWORD
42+ server-password : CENTRAL_TOKEN
4343 gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
4444 gpg-passphrase : GPG_PASSPHRASE
4545
46+ - name : Set release version from tag
47+ if : startsWith(github.ref, 'refs/tags/v')
48+ run : |
49+ VERSION=${GITHUB_REF_NAME#v}
50+ echo "Publishing version: $VERSION"
51+ mvn versions:set -DnewVersion=$VERSION -DgenerateBackupPoms=false
52+
4653 - name : Install beagle.jar to local Maven repo
4754 run : >
4855 mvn install:install-file
7885
7986 - name : Publish to Maven Central
8087 if : startsWith(github.ref, 'refs/tags/v')
81- run : mvn deploy -P release -DskipTests
88+ run : mvn deploy -Prelease -DskipTests
8289 env :
8390 CENTRAL_USERNAME : ${{ secrets.CENTRAL_USERNAME }}
84- CENTRAL_PASSWORD : ${{ secrets.CENTRAL_PASSWORD }}
91+ CENTRAL_TOKEN : ${{ secrets.CENTRAL_TOKEN }}
8592 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments