diff --git a/.travis.yml b/.travis.yml index 1bf6b1c..4d30cd7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,11 @@ branches: only: - master +before_install: + - export TZ=Asia/Shanghai + +script: npm run build; [ -d dist/public ] + before_deploy: # Add tag if missing - if [ -z "$TRAVIS_TAG" ]; then export TRAVIS_TAG=$(date +'%Y%m%d'); git tag -f $TRAVIS_TAG; fi @@ -14,8 +19,6 @@ before_deploy: - cp INSTALL.md dist - zip -r dist.zip dist -script: npm run build; [ -d dist/public ] - deploy: provider: releases api_key: $GITHUB_OAUTH_TOKEN