Skip to content

Commit

Permalink
Merge pull request #84 from mosteirodelandim/add-build-ci
Browse files Browse the repository at this point in the history
[PR] Add build CI to PRs
  • Loading branch information
LuchoTurtle authored Jul 16, 2024
2 parents 554e042 + 9f34b4d commit 0c396fc
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build

on:
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:

# Checkout the code
- uses: actions/checkout@v3

# Install proper version of node
- uses: actions/setup-node@v3
with:
node-version: '16.x'

# Install v3.7.1 of gatsby-cli
- run: npm install -g [email protected]

# Install project dependencies
- run: npm install

# Run gatsby build
- run: gatsby build
env:
GATSBY_MAP_GOOGLE_API_KEY: ${{ secrets.GATSBY_MAP_GOOGLE_API_KEY }}
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

jobs:
build:
deploy:
runs-on: ubuntu-latest
steps:

Expand Down Expand Up @@ -38,4 +38,4 @@ jobs:
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 20
timeout-minutes: 20

0 comments on commit 0c396fc

Please sign in to comment.