update env vars

This commit is contained in:
2016-02-23 18:10:03 +01:00
parent 26eca7aa65
commit 3ae3598c96
4 changed files with 36 additions and 43 deletions

36
dist/npmts.jsdoc.js vendored
View File

@ -19,25 +19,23 @@ var genJsdoc = function () {
};
var publishDocs = function () {
var done = plugins.Q.defer();
try {
var gitUrl = plugins.projectinfo.npm(paths.cwd, {
gitAccessToken: process.env.GITHUB_TOKEN
}).git.httpsUrl;
var deployScript = ""
+ "cd " + paths.docsDir + " "
+ "&& git init "
+ "&& git config user.name \"TRAVIS CI\" "
+ "&& git config user.email \"travis@shipzone.io\" "
+ "&& git add . "
+ "&& git commit -m \"Deploy to GitHub Pages\" "
+ "&& git push --force --quiet "
+ "\"" + gitUrl + "\" "
+ "master:gh-pages "
+ "> /dev/null 2>&1";
}
catch (err) {
console.log(err);
}
process.env.TRAVIS = true;
process.env.GITHUB_TOKEN = "sometoken";
var gitUrl = plugins.projectinfo.npm(paths.cwd, {
gitAccessToken: process.env.GITHUB_TOKEN
}).git.httpsUrl;
var deployScript = ""
+ "cd " + paths.docsDir + " "
+ "&& git init "
+ "&& git config user.name \"TRAVIS CI\" "
+ "&& git config user.email \"travis@shipzone.io\" "
+ "&& git add . "
+ "&& git commit -m \"Deploy to GitHub Pages\" "
+ "&& git push --force --quiet "
+ "\"" + gitUrl + "\" "
+ "master:gh-pages "
+ "> /dev/null 2>&1";
console.log(deployScript);
if (plugins.smartenv.getEnv().isTravis) {
plugins.beautylog.log("now publishing docs to GitHub");
if (!plugins.shelljs.which('git')) {