Bugfix: version file was being created for Piped-Alpine repo
This commit is contained in:
parent
4f69bc3c7e
commit
2d6a217083
2 changed files with 8 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
||||||
piped.jar
|
piped.jar
|
||||||
config.properties
|
config.properties
|
||||||
|
VERSION
|
||||||
|
|
||||||
backend/
|
backend/
|
||||||
reqwest4j/
|
reqwest4j/
|
||||||
|
|
8
build.sh
8
build.sh
|
@ -30,6 +30,12 @@ try_exec () {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set_piped_version () {
|
||||||
|
commit_date=$(git log -1 --date=short --pretty=format:%cd)
|
||||||
|
commit_sha=$(git rev-parse --short HEAD)
|
||||||
|
echo "$commit_date-$commit_sha" >VERSION
|
||||||
|
}
|
||||||
|
|
||||||
title () {
|
title () {
|
||||||
# Newline, Bold text, $1, Normal text, Newline
|
# Newline, Bold text, $1, Normal text, Newline
|
||||||
printf '\n\033[1m%s\033[0m\n' "$1"
|
printf '\n\033[1m%s\033[0m\n' "$1"
|
||||||
|
@ -121,7 +127,7 @@ cd_and_exec backend/libs mv "$REQ4J" ./
|
||||||
|
|
||||||
# From GitHub Actions
|
# From GitHub Actions
|
||||||
title 'Creating VERSION file...'
|
title 'Creating VERSION file...'
|
||||||
cd_and_exec backend echo "$(git log -1 --date=short --pretty=format:%cd)-$(git rev-parse --short HEAD)" >VERSION
|
cd_and_exec backend set_piped_version
|
||||||
|
|
||||||
title 'Building Piped...'
|
title 'Building Piped...'
|
||||||
cd_and_exec backend ./gradlew shadowJar
|
cd_and_exec backend ./gradlew shadowJar
|
||||||
|
|
Loading…
Reference in a new issue