mirror of
https://github.com/twitter/twemoji.git
synced 2025-08-07 08:33:52 +09:00
Remove versioned folder if already exists during deploy
This commit is contained in:
@ -12,6 +12,9 @@ git fetch --all
|
|||||||
git add -f $OUT
|
git add -f $OUT
|
||||||
git checkout $PUBLISH_BRANCH
|
git checkout $PUBLISH_BRANCH
|
||||||
git pull origin $PUBLISH_BRANCH
|
git pull origin $PUBLISH_BRANCH
|
||||||
|
if [ -d $VERSION ]; then
|
||||||
|
rm -r $VERSION
|
||||||
|
if
|
||||||
git mv -f $OUT $VERSION
|
git mv -f $OUT $VERSION
|
||||||
git commit -q -m "Update the Twemoji project and push to $PUBLISH_BRANCH"
|
git commit -q -m "Update the Twemoji project and push to $PUBLISH_BRANCH"
|
||||||
git push origin $PUBLISH_BRANCH
|
git push origin $PUBLISH_BRANCH
|
||||||
|
Reference in New Issue
Block a user