Skip to content

Commit 48cb789

Browse files
committed
ci: use tag version property for Maven Central publish
1 parent 18c64bb commit 48cb789

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/publish-release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,8 @@ jobs:
2323
distribution: 'zulu'
2424
java-version: 17
2525

26-
- name: Set version
27-
run: sed -i "s/VERSION_NAME=0.0.1/VERSION_NAME=$GITHUB_REF_NAME/" gradle.properties
28-
2926
- name: Release to Maven Central
30-
run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
27+
run: ./gradlew publishAndReleaseToMavenCentral -PVERSION_NAME="${GITHUB_REF_NAME}" --no-configuration-cache
3128
env:
3229
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
3330
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}

0 commit comments

Comments
 (0)