Skip to content

Fix: Deploy frontend/ to GitHub Pages via Actions workflow#1

Merged
devXyi merged 1 commit into
mainfrom
copilot/fix-readme-display-issue
May 9, 2026
Merged

Fix: Deploy frontend/ to GitHub Pages via Actions workflow#1
devXyi merged 1 commit into
mainfrom
copilot/fix-readme-display-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 9, 2026

Problem

GitHub Pages was serving from the repo root (which has README.md but no index.html), causing the site to display the README instead of the app.

Even after switching Settings → Pages → Source to "GitHub Actions", the site still showed README.md because this workflow didn't exist on main yet — so nothing was being deployed.

Fix

Adds .github/workflows/pages.yml which:

  • Triggers on every push to main (and supports manual dispatch)
  • Uploads only the frontend/ directory as the Pages artifact
  • Deploys it to GitHub Pages so index.html is served at the site root

Steps to activate

  1. Merge this PR
  2. Go to Settings → Pages → Source and confirm it is set to "GitHub Actions" (if you already did this, leave it)
  3. The workflow will run automatically on merge and deploy frontend/index.html as the site homepage

Copilot finished work on behalf of devXyi May 9, 2026 19:40
Copilot AI requested a review from devXyi May 9, 2026 19:40
@devXyi devXyi marked this pull request as ready for review May 9, 2026 19:40
Copilot AI review requested due to automatic review settings May 9, 2026 19:40
@devXyi devXyi merged commit 923caff into main May 9, 2026
3 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Actions workflow to deploy the static site located in frontend/ to GitHub Pages, ensuring Pages serves frontend/index.html at the site root rather than the repository README.

Changes:

  • Introduces a Pages deployment workflow triggered on pushes to main and via manual dispatch.
  • Configures GitHub Pages, uploads ./frontend as the Pages artifact, and deploys it using the standard deploy-pages action.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants