Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
Smeagolworms4 committed Sep 17, 2022
1 parent 2d59fa8 commit ea84322
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ jobs:
- name: Write version
if: startsWith(github.ref, 'refs/tags/')
run: |
export MOD_VERSION=$(echo $CI_COMMIT_TAG|cut -d- -f1);
export MC_VERSION=$(echo $CI_COMMIT_TAG|cut -d- -f2);
echo "Build = $MOD_VERSION-$MC_VERSION";
export TAG=$(echo "${{ github.ref }}"|cut -d/ -f3);
export MOD_VERSION=$(echo $TAG|cut -d- -f1);
export MC_VERSION=$(echo $TAG|cut -d- -f2);
echo "Build: $MOD_VERSION-$MC_VERSION";
sed -i s/\"version\":\ \"[0-9]\.X\.XDEV/\"version\":\ \"$MOD_VERSION/ src/main/resources/mcmod.info;
sed -i s/modversion\ =\ \"[0-9]\.X\.XDEV/modversion\ =\ \"$MOD_VERSION/ build.gradle;
sed -i s/VERSION\ =\ \"[0-9]\.X\.XDEV/VERSION\ =\ \"$MOD_VERSION/ src/main/java/com/gollum/core/ModGollumCoreLib.java;
Expand Down

0 comments on commit ea84322

Please sign in to comment.