redoc/build/tasks/github-release.js

13 lines
364 B
JavaScript
Raw Normal View History

2016-04-09 02:30:01 +03:00
var gulp = require('gulp');
var release = require('gulp-github-release');
var path = require('path');
var paths = require('../paths');
gulp.task('github-release', ['build'], function(){
gulp.src(paths.redocBuilt + '.min.js')
.pipe(release({
token: process.env.GH_TOKEN,
manifest: require(path.join(__dirname, '../../package.json'))
}));
});