Skip to content

Merge pull request #4 from Saumya-Bhatt/Saumya-Bhatt-patch-1 #10

Merge pull request #4 from Saumya-Bhatt/Saumya-Bhatt-patch-1

Merge pull request #4 from Saumya-Bhatt/Saumya-Bhatt-patch-1 #10

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
- dockerize
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build the React app
run: npm run build
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
branch: gh-pages