2016-10-15 10:38:09 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
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 .
|
|
|
|
cp ./build/Release/appcast.xml ./appcast_snapshot.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}"
|