Skip to content

create github workflow, add homepage and deploy #8

create github workflow, add homepage and deploy

create github workflow, add homepage and deploy #8

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, 'deploy')
steps:
- uses: actions/checkout@v4
- name: Build and Deploy React app to GitHub Pages
run: |
git config --global user.email "[email protected]"
git config --global user.name "Chukwuemeka Ihedoro"
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm install
npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}