drone-sigh #57

Merged
AmineB merged 24 commits from drone-sigh into master 2022-09-14 10:32:01 +00:00
3 changed files with 10 additions and 6 deletions
Showing only changes of commit 99322a0551 - Show all commits

View File

@ -34,7 +34,7 @@ steps:
image: ubuntu:latest
commands:
- apt-get update && apt-get install -y git
- ./build.sh
- ./build.sh --publish --from-ci
trigger:
event:

View File

@ -25,7 +25,7 @@ PARAMS_EXCEPT_PUBLISH=$(echo $1 | sed 's/\-\-publish//')
if [[ "$@" == *'--publish'* ]]
then
./publish-version.sh ${VERSION}
./publish-version.sh ${VERSION} $@
else
echo "Did not publish. If you wanted to do so, call the script with \"--publish\" or \"--publish-local\"."
fi

View File

@ -5,7 +5,11 @@
rm -f version.txt
printf "versionName=$1-github\nversionCode=$1" >> version.txt
# You'll need to change server as your server and define a VERSION_PATH.
scp version.txt server:$VERSION_PATH
rm version.txt
if [[ "$@" == *'--from-ci'* ]]
then
echo "File created. HANDLE IN CI"
else
# You'll need to change server as your server and define a VERSION_PATH.
scp version.txt server:$VERSION_PATH
rm version.txt
fi