From 977c45782ff2ef53e40d72f533b9253ed272e9f6 Mon Sep 17 00:00:00 2001 From: Rohit pai Date: Mon, 23 Aug 2021 20:22:37 +0100 Subject: [PATCH] upadted workflow and gulpfile --- .github/workflows/ftpDeploy.yml | 10 ++++++++++ gulpfile.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ftpDeploy.yml b/.github/workflows/ftpDeploy.yml index d02ef6f..f7148bb 100644 --- a/.github/workflows/ftpDeploy.yml +++ b/.github/workflows/ftpDeploy.yml @@ -7,6 +7,16 @@ jobs: steps: - name: 🚚 Get latest code uses: actions/checkout@v2 + + - name: Use Node.js 12 + uses: actions/setup-node@v2-beta + with: + node-version: '12' + + - name: 🔨Run Gulp + run: | + npm install + npm start - name: 📂 Sync files uses: SamKirkland/FTP-Deploy-Action@4.1.0 diff --git a/gulpfile.js b/gulpfile.js index 9544670..ec1cd58 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -85,4 +85,4 @@ gulp.task("browserSync", () => gulp.watch("dist").on("change", browserSync.reload) }); -gulp.task("default", gulp.series(gulp.parallel("watchFiles", "deploy"))); +gulp.task("default", gulp.series(gulp.parallel("minifyHTML", "minifyCSS", "minifyJS", "movePHPFiles")));