upadted workflow and gulpfile

This commit is contained in:
Rohit Pai 2021-08-23 20:22:37 +01:00
parent 102a614214
commit 977c45782f
2 changed files with 11 additions and 1 deletions

View File

@ -8,6 +8,16 @@ jobs:
- name: 🚚 Get latest code - name: 🚚 Get latest code
uses: actions/checkout@v2 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 - name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@4.1.0 uses: SamKirkland/FTP-Deploy-Action@4.1.0
with: with:

View File

@ -85,4 +85,4 @@ gulp.task("browserSync", () =>
gulp.watch("dist").on("change", browserSync.reload) 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")));