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 7afe1f2 commit 37d2b63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ jobs:
arguments: publish
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_HASH: ${{ github.sha }}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ plugins {
apply plugin: 'org.spongepowered.mixin'

group = 'com.ccr4ft3r'
version = "${mc_version}-${mod_version}"
version = System.getenv("GITHUB_HASH") ?: "${mc_version}-${mod_version}"

java {
archivesBaseName = 'actions-of-stamina'
Expand Down

0 comments on commit 37d2b63

Please sign in to comment.