Skip to content

Fix Deployment issue #2

Fix Deployment issue

Fix Deployment issue #2

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- babyweeks-react # Replace with your branch name
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the code
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16' # Use your Node.js version (e.g., 16, 18)
# Step 3: Install dependencies
- name: Install dependencies
run: npm install
# Step 4: Build the project
- name: Build project
run: npm run build
# Step 5: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_branch: babyweeks-react # Specify your branch here