Skip to content

Commit

Permalink
Add github action for building and deploying site when merged to master
Browse files Browse the repository at this point in the history
  • Loading branch information
katbow committed Sep 24, 2024
1 parent 38a5ea7 commit 6f07fda
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Deploy

on:
push:
branches: auto-deploy

jobs:
build-and-deploy:
name: Build and deploy Gatsby site
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2.3.1

- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: '21.7.3'

- name: Install Project Dependencies
run: npm ci

- name: Build & deploy
run: npm run deploy

0 comments on commit 6f07fda

Please sign in to comment.