2016-10-15 10:38:09 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-10-18 19:00:15 +03:00
|
|
|
set -e
|
2016-11-05 10:53:11 +03:00
|
|
|
set -x
|
2016-10-18 19:00:15 +03:00
|
|
|
|
2016-10-15 10:38:09 +03:00
|
|
|
BRANCH=$1
|
|
|
|
COMPOUND_VERSION=$2
|
2016-10-15 10:47:11 +03:00
|
|
|
IS_SNAPSHOT=$3
|
2016-10-15 10:38:09 +03:00
|
|
|
|
2016-10-15 10:47:11 +03:00
|
|
|
if [ "${IS_SNAPSHOT}" = true ] ; then
|
|
|
|
cp ./build/Release/appcast_snapshot.xml .
|
|
|
|
else
|
|
|
|
cp ./build/Release/appcast.xml .
|
|
|
|
fi
|
2016-10-15 10:38:09 +03:00
|
|
|
|
|
|
|
echo "### Commiting and pushing appcast"
|
2016-10-15 10:47:11 +03:00
|
|
|
|
2016-10-15 10:38:09 +03:00
|
|
|
git commit -am "Bump appcast to ${COMPOUND_VERSION}"
|
|
|
|
git push origin HEAD:"${BRANCH}"
|