1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-11-05 02:30:18 +00:00
twemoji/release.sh
2019-06-19 15:43:56 -07:00

24 lines
344 B
Bash

#!/bin/bash
root=$(
cd $(dirname $0)
/bin/pwd
)
dir=$1
out=/tmp/school.$$
trap "rm -fr $out" 0 1 2
git clone $root/.git $out
cd $out
git remote set-url origin git@github.com:twitter/scala_school.git
git fetch
git checkout gh-pages
cd $root
cp -r $dir/* $out/
cd $out
git add .
git commit -am"publish by $USER"
git push origin gh-pages