From 643dcab9ebeabcdc1b4f836bad5e6db56cdc06f2 Mon Sep 17 00:00:00 2001 From: CzBiX Date: Sat, 14 Sep 2019 04:05:15 +0800 Subject: [PATCH] Always use nightly as travis ci release tag --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4d30cd7..5a1e7fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,10 @@ 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 - - export RELEASE_TITLE=$TRAVIS_TAG-$(git log --format=%h -1) + - if [ -z "$TRAVIS_TAG" ]; then + export TRAVIS_TAG=nightly RELEASE_TITLE=$(date +'%Y%m%d')-$(git log --format=%h -1); + git tag -f $TRAVIS_TAG; + fi # Pack for release - cp dist/public/{index,login}.html - cp INSTALL.md dist