Skip to content

Commit 0c396fc

Browse files
authored
Merge pull request #84 from mosteirodelandim/add-build-ci
[PR] Add build CI to PRs
2 parents 554e042 + 9f34b4d commit 0c396fc

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.github/workflows/build.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 }}

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- master
77

88
jobs:
9-
build:
9+
deploy:
1010
runs-on: ubuntu-latest
1111
steps:
1212

@@ -38,4 +38,4 @@ jobs:
3838
env:
3939
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
4040
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
41-
timeout-minutes: 20
41+
timeout-minutes: 20

0 commit comments

Comments
 (0)