forked from rajeshwarpatlolla/ionic-datepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 912 Bytes
/
gulp-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build and Test
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Ensure write permissions
run: chmod -R 777 ./dist
- name: Clean up dist folder
run: rm -rf ./dist && mkdir -p ./dist
- name: Install dependencies
run: npm install
- name: Run Gulp Build
run: npm run build
- name: Upload dist directory as artifact
if: always()
uses: actions/upload-artifact@v3
with:
name: dist-folder
path: ./dist
- name: Download dist-folder artifact to dist
uses: actions/download-artifact@v3
with:
name: dist-folder
path: ./dist