Skip to content

Merge pull request #10 from seanconroy2021/renovate/redux-5.x #12

Merge pull request #10 from seanconroy2021/renovate/redux-5.x

Merge pull request #10 from seanconroy2021/renovate/redux-5.x #12

Workflow file for this run

name: Build and Deploy
# Build and deploy React app to GitHub Pages on push to main branch (this is for demo purposes only)
# TODO// make the deploy like this https://github.com/enterprise-contract/review-rot/blob/main/.github/workflows/publish.yaml
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '21'
- name: Install dependencies
run: npm install
- name: Build React app
run: npm run build
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: demoWebsite
folder: build
token: ${{ secrets.GHTOKEN}}