1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-25 06:06:21 +03:00
vimr/bin/commit_and_push_appcast.sh

20 lines
332 B
Bash
Raw Normal View History

2016-10-15 10:38:09 +03:00
#!/bin/bash
2016-10-18 19:00:15 +03:00
set -e
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}"