Fetch tags in travis

This commit is contained in:
konstin 2018-05-30 16:24:57 +02:00
parent 6448a016b1
commit 727a051548
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ mdbook build -d ../target/doc/guide guide
# Get the lastest tag across all branches # Get the lastest tag across all branches
# https://stackoverflow.com/a/7261049/3549270 # https://stackoverflow.com/a/7261049/3549270
git fetch --tags
LASTEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1 -l v*)) LASTEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1 -l v*))
git clone -b gh-pages https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG.git gh_pages git clone -b gh-pages https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG.git gh_pages