Created
March 7, 2018 09:57
-
-
Save asbjornenge/5305afe2bcabd9f4d9b972c3c254e233 to your computer and use it in GitHub Desktop.
Small fish script to facilitate deployment using git tags
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
function gitploy | |
if count $argv > /dev/null | |
set -x VERSION $argv[1] | |
echo "Deploying version $VERSION" | |
git tag -a "$VERSION" -m "Version $VERSION"; and git push; and git push --tags | |
else | |
echo "Missing version" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment