We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03b773f commit c7ed8ebCopy full SHA for c7ed8eb
1 file changed
.github/workflows/publish-release.yml
@@ -24,11 +24,8 @@ jobs:
24
java-version: '17'
25
cache: gradle
26
27
- - name: Set version
28
- run: sed -i "s/VERSION_NAME=1.0.1/VERSION_NAME=$GITHUB_REF_NAME/" gradle.properties
29
-
30
- name: Release to Maven Central
31
- run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
+ run: ./gradlew publishAndReleaseToMavenCentral -PVERSION_NAME="${GITHUB_REF_NAME}" --no-configuration-cache
32
env:
33
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
34
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
0 commit comments