From 3c19a83fd4d366cdaf848cab88db7308609fb4a4 Mon Sep 17 00:00:00 2001 From: Ruchit Modi Date: Wed, 25 Feb 2026 10:37:25 -0800 Subject: [PATCH 1/2] Add GitHub Actions workflow for production deployment --- .github/workflows/deploy-production.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/deploy-production.yml diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml new file mode 100644 index 0000000..dd0800b --- /dev/null +++ b/.github/workflows/deploy-production.yml @@ -0,0 +1,24 @@ +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) From 5684acc323b18c322528ceaee356cd1b2231c27d Mon Sep 17 00:00:00 2001 From: Ruchit Modi Date: Wed, 25 Feb 2026 10:40:36 -0800 Subject: [PATCH 2/2] Add GitHub Actions workflow for staging deployment --- .github/workflows/deploy-staging.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/deploy-staging.yml diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml new file mode 100644 index 0000000..11c616a --- /dev/null +++ b/.github/workflows/deploy-staging.yml @@ -0,0 +1,24 @@ +name: Deploy Staging Site + +# Trigger on pushes to the staging branch +on: + push: + branches: [ "staging" ] + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + # Step 1: Check out the code from the staging branch + - name: Checkout staging + uses: actions/checkout@v4 + + # Step 2: Deploy to gh-pages branch (staging subdirectory) + - name: Deploy to Staging + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: gh-pages + publish_dir: . # Same as production (e.g., _site for generators) + destination_dir: staging # Deploy to /staging in gh-pages + force_orphan: false # Don’t overwrite production files in gh-pages