Commit d48e9f49 authored by Nikolay Gromov's avatar Nikolay Gromov

Добавил в задачу деплоя вывод адреса

parent 09a345d1
...@@ -425,8 +425,17 @@ gulp.task('build', gulp.series( ...@@ -425,8 +425,17 @@ gulp.task('build', gulp.series(
gulp.task('deploy', function() { gulp.task('deploy', function() {
const ghPages = require('gulp-gh-pages'); const ghPages = require('gulp-gh-pages');
console.log('---------- Публикация содержимого ./build/ на GH pages'); console.log('---------- Публикация содержимого ./build/ на GH pages');
var ghPagesUrl;
if (repoUrl) {
var urlParts = repoUrl.split('/');
if (urlParts[2] == 'github.com') {
ghPagesUrl = 'http://' + urlParts[3] + '.github.io/' + urlParts[4] + '/';
}
console.log(ghPagesUrl);
}
return gulp.src(dirs.buildPath + '**/*') return gulp.src(dirs.buildPath + '**/*')
.pipe(ghPages()); .pipe(ghPages())
.pipe(gulpIf(ghPagesUrl, console.log('---------- ' + ghPagesUrl)));
}); });
// Локальный сервер, слежение // Локальный сервер, слежение
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment