File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,13 @@ jobs:
1818 distribution : ' temurin'
1919 - name : Grant execute permission
2020 run : chmod +x gradlew
21+ - name : Extract version (strip leading v)
22+ run : echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
2123 - name : Deploy to Maven Central
2224 run : ./gradlew deployCentralPortal -Pversion=$VERSION
2325 env :
2426 MVN_GPG_KEY : ${{ secrets.MVN_GPG_KEY }}
2527 MVN_GPG_PASSWORD : ${{ secrets.MVN_GPG_PASSWORD }}
2628 SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
2729 SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
28- VERSION : ${{ github.event.release.tag_name }}
30+ VERSION : ${{ env.VERSION }}
Original file line number Diff line number Diff line change @@ -58,12 +58,9 @@ deployer {
5858 }
5959 }
6060
61- localSpec {
62- release.version = " $version -LOCAL"
63- }
61+ localSpec()
6462
6563 nexusSpec(" snapshot" ) {
66- release.version = " $version -SNAPSHOT"
6764 repositoryUrl = " https://central.sonatype.com/repository/maven-snapshots/"
6865 auth {
6966 user = secret(" SONATYPE_USERNAME" )
You can’t perform that action at this time.
0 commit comments