Skip to content

Merge pull request #25 from tylerwong1/chatbot #9

Merge pull request #25 from tylerwong1/chatbot

Merge pull request #25 from tylerwong1/chatbot #9

name: Frontend Deployment # Static Deployment of Frontend to GitHub Pages
on:
push:
branches:
- main
paths:
- 'client/**' # Only run on changes in the client folder
workflow_dispatch:
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
build:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install modules
run: cd client && npm install
- name: Build app
run: cd client && npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./client/dist