Permalink
Browse files

build: fix docs publishing

  • Loading branch information...
alexandru committed Oct 11, 2017
1 parent 662d489 commit b0ed27d09a704619333a0ce495de56d804c1a3ae
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/gh-pages-publish.js
@@ -24,14 +24,15 @@ const path = require("path")
console.info(`CI=${process.env["CI"]}`)
console.info(`TRAVIS_BRANCH=${process.env["TRAVIS_BRANCH"]}`)
console.info(`TRAVIS_TAG=${process.env["TRAVIS_TAG"]}`)
console.info(`TRAVIS_PULL_REQUEST=${process.env["TRAVIS_PULL_REQUEST"]}`)
if (!process.env["CI"]) {
console.info("Not running on top of Travis, cannot deploy docs")
process.exit(1)
}
const branch = process.env["TRAVIS_BRANCH"]
const branch = process.env["TRAVIS_BRANCH"] || process.env["TRAVIS_TAG"]
const m = branch.match(/^v(\d+\.\d+\.\d+)$/)
let version = m && m[1]

0 comments on commit b0ed27d

Please sign in to comment.