1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-12-25 15:14:19 +00:00

Remove versioned folder if already exists during deploy

This commit is contained in:
Alan Velasco 2019-06-25 20:46:51 -07:00
parent ae47fd9840
commit d6a0078911

View File

@ -12,6 +12,9 @@ git fetch --all
git add -f $OUT
git checkout $PUBLISH_BRANCH
git pull origin $PUBLISH_BRANCH
if [ -d $VERSION ]; then
rm -r $VERSION
if
git mv -f $OUT $VERSION
git commit -q -m "Update the Twemoji project and push to $PUBLISH_BRANCH"
git push origin $PUBLISH_BRANCH