update env vars
This commit is contained in:
parent
26eca7aa65
commit
3ae3598c96
@ -12,4 +12,4 @@ deploy:
|
|||||||
repo: pushrocks/npmts
|
repo: pushrocks/npmts
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
secure: lRpS8nmy/41Mi71wSiCNIeXzuLRWCulDiZeZt3NJL9uDVAZCVOn19vrTkldN9qILs70iV8zDQclHdTLH/ru1gYs0YP6jMjmQPFpAV+AfZMQS8vXBNYNUrcsgqx62cJVk3i6oFn0gL42j+9jhxlq5c6AiyhDMQSi1y5aAcqaYwWnHzxEif7EV+rbINXZVs22VGNBL3WW1su6wU/IfyUQppgdvVygWC0T9RVJbfwIDd7l7mDXBKwVt3lSWlwJSSwcQGLlssRunlBjc8sHY9TAwvC++PZ27fPhT2F5142b5WVBIArA1fzlXyQnmk1+rT6fY9SKY9EQUV49w5IILl1OUG5aD0kueKJ/fP2Gw593cgazgLtKUoIFmD3ZwlKjtDfLtF+F+9nyKbaz65l2f9O6L21SX5KJ5fjqIOnpjAJd7XX9eC3rMagTbowwKZxOhGcm91uCp4gjaBhv+8mx7MtbEGv9BOqvb6tef/5GAC3IgBfTdJr+wF5LaHxv1YEqUcwhMlNZ+UWn/Lfc0xrMPqjrCXDzmq9yduptBaTmaUMBFDGDYPO7b1TRtW06zMfnsIbAr9cEyMW7SNw4irwzCBAXu72hGBtFyjlMUQkSeL83VktKuRPShSLaal9r5iJSAayHCbWv98hvtz/PWecroZSvHapdkZI2YwY0d1BYMeBKbqAE=
|
secure: Xu27mG/9ScM/k4lKI5yyS4jSUh756lVJ+mP4UKe0FJI2jpVkOR8lZlLg8jqTRyhaXpRDnRo2O/yjA7P8/tC8tLe/GvoN4ooHU92axjUvuH+gxSvsI2Wodju+KrPHYrPPuDrPCf9M7mH0QQtUuPmcgcpPBuPQaNkTmLx/yfAaJYderLrPPoMU17BTG1C/7Glm7rIxj19SGCMjEK5ZMveCyNSTjqupS3kNw3mJU76W4SiEGY5NZWJKksEYS4nGP1cCnyci2fvwUSjmXtHqKXpXOJT6VZzqOX84zLIfdaqr47sQSXL11hWOofHyKA65ijQi83GLIGcxsLSKaNZU6UTj9+5TmEkgXh9yfmsXjEBhMc4FqmkG6HRsiW+OXchmarU024kXXo7TH6EPhVvKPclUovG5sidBF4M5EsdqdhJfY7VIj9cSXE8a/TqmL3LT+b86Z1vYwVXKXpO6aLQH+VnwtP3yKfa0Wp6qqUd0g+wAo/AvDIbfYMYxlwXA+B2K6AWjqVSWNj9qA4/j+avsmalI2KRWNeo8Mm67V2H1nBN2t/gj0I0AinsZG5ASQrKI2O+4HOzXzkMtzk8XTo9tZSaGaKsjVXktjicBgQztl1bJktQOeDdWt76XaIK+B+i3iiuIehXtxOP9k7yCu2PM0g/dUfqQn2gifqclaGCTxCngs3E=
|
||||||
|
36
dist/npmts.jsdoc.js
vendored
36
dist/npmts.jsdoc.js
vendored
@ -19,25 +19,23 @@ var genJsdoc = function () {
|
|||||||
};
|
};
|
||||||
var publishDocs = function () {
|
var publishDocs = function () {
|
||||||
var done = plugins.Q.defer();
|
var done = plugins.Q.defer();
|
||||||
try {
|
process.env.TRAVIS = true;
|
||||||
var gitUrl = plugins.projectinfo.npm(paths.cwd, {
|
process.env.GITHUB_TOKEN = "sometoken";
|
||||||
gitAccessToken: process.env.GITHUB_TOKEN
|
var gitUrl = plugins.projectinfo.npm(paths.cwd, {
|
||||||
}).git.httpsUrl;
|
gitAccessToken: process.env.GITHUB_TOKEN
|
||||||
var deployScript = ""
|
}).git.httpsUrl;
|
||||||
+ "cd " + paths.docsDir + " "
|
var deployScript = ""
|
||||||
+ "&& git init "
|
+ "cd " + paths.docsDir + " "
|
||||||
+ "&& git config user.name \"TRAVIS CI\" "
|
+ "&& git init "
|
||||||
+ "&& git config user.email \"travis@shipzone.io\" "
|
+ "&& git config user.name \"TRAVIS CI\" "
|
||||||
+ "&& git add . "
|
+ "&& git config user.email \"travis@shipzone.io\" "
|
||||||
+ "&& git commit -m \"Deploy to GitHub Pages\" "
|
+ "&& git add . "
|
||||||
+ "&& git push --force --quiet "
|
+ "&& git commit -m \"Deploy to GitHub Pages\" "
|
||||||
+ "\"" + gitUrl + "\" "
|
+ "&& git push --force --quiet "
|
||||||
+ "master:gh-pages "
|
+ "\"" + gitUrl + "\" "
|
||||||
+ "> /dev/null 2>&1";
|
+ "master:gh-pages "
|
||||||
}
|
+ "> /dev/null 2>&1";
|
||||||
catch (err) {
|
console.log(deployScript);
|
||||||
console.log(err);
|
|
||||||
}
|
|
||||||
if (plugins.smartenv.getEnv().isTravis) {
|
if (plugins.smartenv.getEnv().isTravis) {
|
||||||
plugins.beautylog.log("now publishing docs to GitHub");
|
plugins.beautylog.log("now publishing docs to GitHub");
|
||||||
if (!plugins.shelljs.which('git')) {
|
if (!plugins.shelljs.which('git')) {
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
"gulp-concat": "^2.6.0",
|
"gulp-concat": "^2.6.0",
|
||||||
"gulp-coveralls": "^0.1.4",
|
"gulp-coveralls": "^0.1.4",
|
||||||
"gulp-function": "^1.1.1",
|
"gulp-function": "^1.1.1",
|
||||||
"gulp-header": "^1.7.1",
|
|
||||||
"gulp-if": "^2.0.0",
|
"gulp-if": "^2.0.0",
|
||||||
"gulp-istanbul": "^0.10.3",
|
"gulp-istanbul": "^0.10.3",
|
||||||
"gulp-jsdoc3": "^0.2.0",
|
"gulp-jsdoc3": "^0.2.0",
|
||||||
|
@ -19,29 +19,25 @@ var genJsdoc = function(){
|
|||||||
|
|
||||||
var publishDocs = function(){
|
var publishDocs = function(){
|
||||||
var done = plugins.Q.defer();
|
var done = plugins.Q.defer();
|
||||||
try {
|
var gitUrl = plugins.projectinfo.npm(
|
||||||
var gitUrl = plugins.projectinfo.npm(
|
paths.cwd,
|
||||||
paths.cwd,
|
{
|
||||||
{
|
gitAccessToken:process.env.GITHUB_TOKEN
|
||||||
gitAccessToken:process.env.GITHUB_TOKEN
|
}
|
||||||
}
|
).git.httpsUrl;
|
||||||
).git.httpsUrl;
|
|
||||||
|
|
||||||
var deployScript = ""
|
var deployScript = ""
|
||||||
+ "cd " + paths.docsDir + " "
|
+ "cd " + paths.docsDir + " "
|
||||||
+ "&& git init "
|
+ "&& git init "
|
||||||
+ "&& git config user.name \"TRAVIS CI\" "
|
+ "&& git config user.name \"TRAVIS CI\" "
|
||||||
+ "&& git config user.email \"travis@shipzone.io\" "
|
+ "&& git config user.email \"travis@shipzone.io\" "
|
||||||
+ "&& git add . "
|
+ "&& git add . "
|
||||||
+ "&& git commit -m \"Deploy to GitHub Pages\" "
|
+ "&& git commit -m \"Deploy to GitHub Pages\" "
|
||||||
+ "&& git push --force --quiet "
|
+ "&& git push --force --quiet "
|
||||||
+ "\"" + gitUrl + "\" "
|
+ "\"" + gitUrl + "\" "
|
||||||
+ "master:gh-pages "
|
+ "master:gh-pages "
|
||||||
+ "> /dev/null 2>&1";
|
+ "> /dev/null 2>&1";
|
||||||
}
|
console.log(deployScript);
|
||||||
catch (err){
|
|
||||||
console.log(err);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(plugins.smartenv.getEnv().isTravis){
|
if(plugins.smartenv.getEnv().isTravis){
|
||||||
plugins.beautylog.log("now publishing docs to GitHub")
|
plugins.beautylog.log("now publishing docs to GitHub")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user