mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Fix deploy.sh if (#7132)
This commit is contained in:
parent
28e03946a1
commit
bd4537cae4
@ -8,7 +8,7 @@ TARGET_REPO_URL="https://$GITHUB_AUTH_TOKEN@github.com/chartjs/chartjs.github.io
|
||||
VERSION_REGEX='[[:digit:]]+.[[:digit:]]+.[[:digit:]]+(-.*)?'
|
||||
|
||||
# Make sure that this script is executed only for the release and master branches
|
||||
if [ "$TRAVIS_BRANCH" =~ ^release.*$ ]; then
|
||||
if [[ "$TRAVIS_BRANCH" =~ ^release.*$ ]]; then
|
||||
# Travis executes this script from the repository root, so at the same level than package.json
|
||||
VERSION=$(node -p -e "require('./package.json').version")
|
||||
elif [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user