Skip to content

Commit 44d3e54

Browse files
committed
fix hashTag
1 parent e51b3e0 commit 44d3e54

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.travis.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ before_script:
1010
language: node_js
1111
sudo: required
1212
node_js:
13-
- "stable"
13+
- 6
1414

1515
# travis call prepare
1616
# Send coverage data to Coveralls
@@ -32,18 +32,11 @@ before_deploy:
3232
git commit --amend -m "[skip travis] version changed $PACKAGE_VERSION"
3333
git push https://${GITHUB_TOKEN}@github.com/$TRAVIS_REPO_SLUG HEAD:$TRAVIS_BRANCH
3434
git tag -f -a "$PACKAGE_VERSION" -m "new version $PACKAGE_VERSION"
35-
export LAST_HASH=$(git ls-remote https://github.com/$TRAVIS_REPO_SLUG $TRAVIS_BRANCH | awk '{ print $1}')
35+
export LAST_HASH=$(git ls-remote https://github.com/$TRAVIS_REPO_SLUG refs/heads/$TRAVIS_BRANCH | awk '{ print $1}')
3636
echo $NPM_TOKEN
3737
fi
3838
3939
deploy:
40-
- provider: script
41-
skip_cleanup: true
42-
keep_history: true
43-
script: bash public_pages.sh
44-
on:
45-
branch: master
46-
condition: $TRAVIS_COMMIT_MESSAGE == *"[run deploy]"*
4740
- provider: releases
4841
target_commitish : $LAST_HASH
4942
keep_history: true
@@ -53,6 +46,13 @@ deploy:
5346
on:
5447
branch: master
5548
condition: $TRAVIS_COMMIT_MESSAGE == *"[run deploy]"*
49+
- provider: script
50+
skip_cleanup: true
51+
keep_history: true
52+
script: bash public_pages.sh
53+
on:
54+
branch: master
55+
condition: $TRAVIS_COMMIT_MESSAGE == *"[run deploy]"*
5656
- provider: npm
5757
registry: "https://registry.npmjs.org/"
5858
skip_cleanup: true

0 commit comments

Comments
 (0)