Skip to content

Build and Deploy

Build and Deploy #10

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
paths:
- "src/**"
- "public/**"
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code 🛎
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node 🏗
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Install and Build 🔧
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build
CLEAN: true # Automatically remove deleted files from the deploy branch