Created
May 14, 2015 11:24
-
-
Save spamoom/12121932d1460dc4ea69 to your computer and use it in GitHub Desktop.
Update and tag a version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $1 ] | |
then | |
echo $1 > version.txt | |
echo "Wrote version.txt file\n" | |
git add . | |
git commit -m "Bumping version file to $1" | |
git tag -a $1 -m "Bumping version $1" | |
echo "Created tag: $1\n" | |
git push origin $1 | |
echo "Pushed $1 tag to origin\n" | |
else | |
echo "No version specified.\n" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put in devtools 😃