diff --git a/.travis.yml b/.travis.yml index 6d81cf4..ec3d575 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ script: - yarn run test -- --verbose --coverage after_success: -- if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then yarn run generate; fi +- if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then bash ./scripts/deploy.sh; fi cache: yarn: true diff --git a/scripts/deploy.sh b/scripts/deploy.sh new file mode 100644 index 0000000..900d2f6 --- /dev/null +++ b/scripts/deploy.sh @@ -0,0 +1,9 @@ +yarn run generate + +git config --global user.name ikatyang-bot +git config --global user.email ikatyang+bot@gmail.com +git config --global push.default simple + +git add --all +git commit -m "docs(readme): update emoji-cheat-sheet" +git push -q