Skip to content

Restore artifact-based GitHub Pages deployment to prevent raw src/main.tsx publishing - #9

Merged
samsta merged 1 commit into
mainfrom
copilot/fix-github-pages-deployment-issue
May 22, 2026
Merged

samsta merged 1 commit into
mainfrom
copilot/fix-github-pages-deployment-issue

Conversation

Copilot AI commented May 22, 2026

Copy link
Copy Markdown
Contributor

The deployed Pages site was serving source-oriented output (including src/main.tsx) instead of the Vite build artifact, causing runtime failure in production. This PR re-aligns deployment to publish only the generated dist artifact.

  • Deployment workflow correction

    • Moves actions/configure-pages@v5 back to the build job.
    • Removes enablement: true from the deploy job to avoid triggering branch/Jekyll-style site behavior.
    • Preserves artifact flow: npm run build → actions/upload-pages-artifact (./dist) → actions/deploy-pages.
  • Release/version metadata

    • Bumps app version from 0.7.0 to 0.8.0 in package.json.
    • Syncs lockfile package metadata to match.
# .github/workflows/deploy.yml
build:
  steps:
    - uses: actions/configure-pages@v5
    - run: npm run build
    - uses: actions/upload-pages-artifact@v3
      with:
        path: ./dist

deploy:
  steps:
    - uses: actions/deploy-pages@v4

@samsta
samsta marked this pull request as ready for review May 22, 2026 01:42
@samsta
samsta merged commit 1b135bb into main May 22, 2026
3 checks passed
@samsta
samsta deleted the copilot/fix-github-pages-deployment-issue branch May 27, 2026 07:30
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.

2 participants