Skip to content

Commit

Permalink
Make CI build to HASH not to Version
Browse files Browse the repository at this point in the history
  • Loading branch information
FOREVEREALIZE committed Dec 2, 2023
1 parent a9bbec3 commit 4cf8673
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ jobs:
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_HASH: ${{ github.sha }}
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ subprojects {
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
java.withSourcesJar()
java.withJavadocJar()

version = System.getenv("GITHUB_HASH") ?: project.version

jar {
from(rootProject.file("LICENSE"))
Expand Down

0 comments on commit 4cf8673

Please sign in to comment.