1
0
mirror of https://github.com/ikatyang/emoji-cheat-sheet.git synced 2024-12-22 17:13:41 +01:00

chore(travis): update cron script

This commit is contained in:
ikatyang 2017-07-16 00:19:14 +08:00
parent c406bbcb35
commit 91caa1b387
2 changed files with 10 additions and 1 deletions

View File

@ -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

9
scripts/deploy.sh Normal file
View File

@ -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