File tree Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+
13
+ # Checkout the code
14
+ - uses : actions/checkout@v3
15
+
16
+ # Install proper version of node
17
+ - uses : actions/setup-node@v3
18
+ with :
19
+ node-version : ' 16.x'
20
+
21
+ # Install v3.7.1 of gatsby-cli
22
+ -
run :
npm install -g [email protected]
23
+
24
+ # Install project dependencies
25
+ - run : npm install
26
+
27
+ # Run gatsby build
28
+ - run : gatsby build
29
+ env :
30
+ GATSBY_MAP_GOOGLE_API_KEY : ${{ secrets.GATSBY_MAP_GOOGLE_API_KEY }}
Original file line number Diff line number Diff line change 6
6
- master
7
7
8
8
jobs :
9
- build :
9
+ deploy :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
38
38
env :
39
39
NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
40
40
NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
41
- timeout-minutes : 20
41
+ timeout-minutes : 20
You can’t perform that action at this time.
0 commit comments