From 3e3042069817bb084b1bd9eb6cd2f9888380b795 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Thu, 27 Jul 2023 12:42:20 +0400 Subject: [PATCH] Version file --- build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.sh b/build.sh index 4e7af75..86c39d2 100755 --- a/build.sh +++ b/build.sh @@ -119,6 +119,10 @@ title 'Adding reqwest4j JAR into Piped sources...' cd_and_exec backend mkdir -p libs cd_and_exec backend/libs mv "$REQ4J" ./ +# From GitHub Actions +title 'Creating VERSION file...' +cd_and_exec backend echo "$(git log -1 --date=short --pretty=format:%cd)-$(git rev-parse --short HEAD)" >VERSION + title 'Building Piped...' cd_and_exec backend ./gradlew shadowJar cd_and_exec backend ./gradlew --stop