Skip to content

Commit d1cabfe

Browse files
committed
ci: use version from tag name
1 parent fc98b42 commit d1cabfe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/gradle.yml

+1
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ jobs:
4343
env:
4444
USERNAME: ${{ github.actor }}
4545
TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
VERSION: ${{ github.event.release.tag_name }}

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repositories {
1111
}
1212

1313
// run gradle with "-Dsnapshot=true" to automatically append "-SNAPSHOT" to the version
14-
version = '1.5.0' + (Boolean.valueOf(System.getProperty("snapshot")) ? "-SNAPSHOT" : "")
14+
version = System.getenv("VERSION") ?: "dev-SNAPSHOT"
1515
sourceCompatibility = 11
1616

1717
ext {

0 commit comments

Comments
 (0)