From 91caa1b3875f9d8c9b6d023eaa76d9957d894574 Mon Sep 17 00:00:00 2001 From: ikatyang Date: Sun, 16 Jul 2017 00:19:14 +0800 Subject: [PATCH] chore(travis): update cron script --- .travis.yml | 2 +- scripts/deploy.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 scripts/deploy.sh 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