1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-07-05 12:28:51 +00:00
twemoji/scripts/deploy.sh

17 lines
324 B
Bash
Raw Normal View History

#!/bin/bash
ROOT=$(
cd $(dirname $0)/..
/bin/pwd
)
OUT="$ROOT/dist/"
PUBLISH_BRANCH=$1
VERSION=$2
git fetch --all
git add -f $OUT
git checkout $PUBLISH_BRANCH
git pull origin $PUBLISH_BRANCH
git mv -f $OUT $VERSION
git commit -m "Update the Twemoji project and push to $PUBLISH_BRANCH"
git push origin $PUBLISH_BRANCH