Skip to content

Merge pull request #6 from rmodi6/staging #4

Merge pull request #6 from rmodi6/staging

Merge pull request #6 from rmodi6/staging #4

name: Deploy Production Site
# Trigger on pushes to the main branch
on:
push:
branches: [ "main" ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the code from the main branch
- name: Checkout main
uses: actions/checkout@v4
# Step 2: Deploy to gh-pages branch (root directory)
- name: Deploy to Production
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # Auto-generated by GitHub
publish_branch: gh-pages # Branch to deploy to
publish_dir: . # Directory with built files (use _site for Jekyll/Hugo)
destination_dir: . # Deploy to root of gh-pages
force_orphan: true # Keep gh-pages clean (only built files)