Skip to content

Merge pull request #40 from zichenzhang04/main #6

Merge pull request #40 from zichenzhang04/main

Merge pull request #40 from zichenzhang04/main #6

name: Build and Deploy React App
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install Node.js dependencies
run: npm ci
- name: Build React App
run: npx webpack
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./collage/static/js