Skip to content

Instantly share code, notes, and snippets.

@ianlintner-wf
Last active September 8, 2016 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianlintner-wf/5db23eab33193bb32379fb6e5ba985b0 to your computer and use it in GitHub Desktop.
Save ianlintner-wf/5db23eab33193bb32379fb6e5ba985b0 to your computer and use it in GitHub Desktop.
git checkout master
if ! git diff-files --quiet --ignore-submodules
then
echo "there are changes in the working tree exiting..."
exit 1
fi
git pull origin
git pull origin --tags
git tag -a "$tag" -m "deploy tag $tag"
git pull --tags
git push --tags
drush $drush_alias ac-code-path-deploy "tags/$tag"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment