Skip to content

Commit eb54298

Browse files
authored
Merge pull request #5 from jzelinskie/release-op
.github/gradle: use ?: operator for release
2 parents 2437b2e + b5ac3bc commit eb54298

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ jobs:
2323
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.SIGNING_PASSWORD }}"
2424
ORG_GRADLE_PROJECT_sonatypeUsername: "${{ secrets.SONATYPE_USERNAME }}"
2525
ORG_GRADLE_PROJECT_sonatypePassword: "${{ secrets.SONATYPE_PASSWORD }}"
26-
run: "ORG_GRADLE_PROJECT_release=${GITHUB_REF#ref/tags/} ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository"
26+
run: |
27+
export ORG_GRADLE_PROJECT_release=${GITHUB_REF#ref/tags/}
28+
echo $ORG_GRADLE_PROJECT_release
29+
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository"

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repositories {
1515
}
1616

1717
group = "com.authzed.api"
18-
version = project.hasProperty("release") ? findProperty("release") : "0.0.0-SNAPSHOT"
18+
version = findProperty("release") ?: "0.0.0-SNAPSHOT"
1919

2020
nexusPublishing { repositories { sonatype {
2121
// If registered in Sonatype after 24 Feb 2021, you must explicitly configure these:

0 commit comments

Comments
 (0)