File tree Expand file tree Collapse file tree 3 files changed +49
-2
lines changed Expand file tree Collapse file tree 3 files changed +49
-2
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- dev
6
- - master
7
6
8
7
jobs :
9
8
test :
Original file line number Diff line number Diff line change
1
+ name : Dev Deploy
2
+ on :
3
+ push :
4
+ branches :
5
+ - dev
6
+ pull_request :
7
+ branches :
8
+ - master
9
+ jobs :
10
+ deploy :
11
+ runs-on : ubuntu-latest
12
+ name : Build
13
+ steps :
14
+ - name : Checking out code ⚡
15
+ uses : actions/checkout@v2
16
+
17
+ - name : Setting up NodeJS 📐
18
+ uses : actions/setup-node@v1
19
+ with :
20
+ node-version : ' 14.x'
21
+
22
+ - name : Caching Dependencies 💾
23
+ uses : actions/cache@v1
24
+ with :
25
+ path : ~/.npm
26
+ key : ${{ runner.os }}-node-${{ hashFiles('**/yarn-lock.json') }}
27
+ restore-keys : |
28
+ ${{ runner.os }}-node-
29
+
30
+ - name : Building 🏗
31
+ run : |
32
+ npm install -g yarn
33
+ yarn install --frozen-lockfile
34
+ yarn install
35
+ yarn run generate
36
+
37
+ - name : Deploy to Netlify ✅
38
+
39
+ with :
40
+ publish-dir : ' ./dist'
41
+ production-branch : master
42
+ github-token : ${{ secrets.GITHUB_TOKEN }}
43
+ deploy-message : " Deploy from GitHub Actions"
44
+ production-deploy : false
45
+ env :
46
+ NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
47
+ NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
Original file line number Diff line number Diff line change 1
- name : Deploy
1
+ name : Production Deploy
2
2
on :
3
3
push :
4
4
branches :
38
38
production-branch : master
39
39
github-token : ${{ secrets.GITHUB_TOKEN }}
40
40
deploy-message : " Deploy from GitHub Actions"
41
+ production-deploy : true
41
42
env :
42
43
NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
43
44
NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
You can’t perform that action at this time.
0 commit comments