Skip to content

Commit

Permalink
fix zip task
Browse files Browse the repository at this point in the history
  • Loading branch information
MOTOO11 committed Dec 10, 2016
1 parent 3cb738c commit d7f6a8b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ gulp.task("release", ["build"], (done) => {
console.log(path);
gulp.src("README.md").pipe(gulp.dest(path[0]))
.on("end", () => {
gulp.src("./" + path[0] + "/*", {
gulp.src("./" + path[0] + "/**", {
base: path[0]
})
.pipe(zip(path[0].split("\\")[1] + ".zip"))
.pipe(gulp.dest("./" + path[0].split("\\")[0]))
.on("end", () => {
gulp.src("README.md").pipe(gulp.dest(path[1]))
.on("end", () => {
gulp.src("./" + path[1] + "/*", {
gulp.src("./" + path[1] + "/**", {
base: path[1]
})
.pipe(zip(path[1].split("\\")[1] + ".zip"))
Expand Down Expand Up @@ -182,7 +182,6 @@ gulp.task('gh:release', () => {
})
.then((res) => {
gutil.log('Asset "' + res.name + '" uploaded');
open("https://github.com/odangosan/liveport/releases/tag/" + "v" + pkg.version);
return res.id
}).then((id) => {
return pify(github.repos.getReleaseByTag)({
Expand Down

0 comments on commit d7f6a8b

Please sign in to comment.