Push forward
This commit is contained in:
+5
-5
@@ -1,13 +1,13 @@
|
||||
#!/bin/sh
|
||||
# Camellia CI - Environment Setup Script
|
||||
# Shiroha CI - Environment Setup Script
|
||||
# Reads gradle.properties and sets GitHub Actions environment variables
|
||||
|
||||
prop() {
|
||||
grep "^[[:space:]]*${1}" gradle.properties | cut -d'=' -f2 | sed 's/^[[:space:]]*//; s/\r//'
|
||||
}
|
||||
|
||||
project_id="camellia"
|
||||
project_id_b="Camellia"
|
||||
project_id="shiroha"
|
||||
project_id_b="Shiroha"
|
||||
|
||||
commitid=$(git log --pretty='%h' -1)
|
||||
mcversion=$(prop mcVersion)
|
||||
@@ -20,7 +20,7 @@ if [ "$run_attempt" = "1" ]; then
|
||||
else
|
||||
jarName="$project_id-$mcversion-$BUILD_NUMBER-$run_attempt.jar"
|
||||
fi
|
||||
jarName_dir="camellia-server/build/libs/$jarName"
|
||||
jarName_dir="shiroha-server/build/libs/$jarName"
|
||||
|
||||
flag_push_repo=false
|
||||
flag_release=false
|
||||
@@ -45,7 +45,7 @@ elif [ "$pushRepo" = "false" ]; then
|
||||
fi
|
||||
|
||||
# Rename the paperclip jar to a standardized name
|
||||
actual_jar=$(ls camellia-server/build/libs/*-paperclip-*.jar 2>/dev/null | head -n 1)
|
||||
actual_jar=$(ls shiroha-server/build/libs/*-paperclip-*.jar 2>/dev/null | head -n 1)
|
||||
if [ -n "$actual_jar" ]; then
|
||||
mv "$actual_jar" "$jarName_dir"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user