Add timezone in travis ci

This commit is contained in:
CzBiX
2019-09-14 03:25:33 +08:00
parent 99ecdb84a6
commit 31f69e6679

View File

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