Skip to content

Commit

Permalink
Update deployment workflow to use gh-pages branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ntemposd committed Dec 25, 2024
1 parent 6655254 commit c93a7a1
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,30 @@ name: Deploy to GitHub Pages
on:
push:
branches:
- babyweeks-react # Replace with your branch name
- babyweeks-react # Trigger on this branch

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)
node-version: '16'

# 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
publish_branch: gh-pages # Specify the deployment branch

0 comments on commit c93a7a1

Please sign in to comment.