Skip to content

Commit c7ed8eb

Browse files
committed
ci: use tag version property for Maven Central publish
1 parent 03b773f commit c7ed8eb

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ jobs:
2424
java-version: '17'
2525
cache: gradle
2626

27-
- name: Set version
28-
run: sed -i "s/VERSION_NAME=1.0.1/VERSION_NAME=$GITHUB_REF_NAME/" gradle.properties
29-
3027
- name: Release to Maven Central
31-
run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
28+
run: ./gradlew publishAndReleaseToMavenCentral -PVERSION_NAME="${GITHUB_REF_NAME}" --no-configuration-cache
3229
env:
3330
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
3431
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}

0 commit comments

Comments
 (0)