Skip to content

Commit

Permalink
slight formatting change
Browse files Browse the repository at this point in the history
  • Loading branch information
screret committed Oct 20, 2023
1 parent a42b6ef commit 12a5d4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Get Version
id: var
run: |
MESSAGE=$(ls forge/build/libs/* | grep sources.jar -v | grep shadow.jar -v | awk -F 'gtceu-forge-|.jar' '{print $2}')
MESSAGE=$(ls forge/build/libs/* | grep sources.jar -v | grep shadow.jar -v | awk -F 'gcys-forge-|.jar' '{print $2}')
echo version=$MESSAGE >> $GITHUB_OUTPUT
- name: release
Expand Down
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,13 @@ allprojects {
apply plugin: "architectury-plugin"
apply plugin: "maven-publish"

archivesBaseName = rootProject.mod_id
version = rootProject.mod_version
archivesBaseName = "${project.name}-${libs.versions.minecraft.get()}"
group = rootProject.maven_group

// Formats the mod version to include the loader, Minecraft version, and build number (if present)
String buildNumber = System.getenv("GITHUB_ACTION_NUMBER")
version = "${mod_version}" + (buildNumber != null ? "-build_${System.getenv("GITHUB_RUN_NUMBER")}" : "")

repositories {
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because
Expand Down

0 comments on commit 12a5d4c

Please sign in to comment.