I cannot deploy my github pages. The repository size is approximately 100Kb. #184100
Replies: 3 comments
-
|
Check that Pages is enabled in the repo settings and that the publishing branch matches what Pages is set to (user sites usually use main). Make sure your workflow uses current actions (upload-pages-artifact@v3 and deploy-pages@v4) and includes permissions: contents: read, pages: write, id-token: write. If you don’t need Jekyll, add a blank .nojekyll file at the repo root. Cancel any stuck/queued runs and push again. If you want, paste your workflow YAML and I’ll look for specific issues. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @thanakornbua 👋 Repo size (100KB) is not the issue — GitHub Pages deployments usually fail because of config/branch settings or a build error in the Pages workflow. Here are the most common things to check/fix: ✅ 1) Check GitHub Pages settingsGo to: Make sure:
✅ 2) Confirm your site files exist in the correct placeFor normal Pages (no framework):
If ✅ 3) Check the Action error logsOpen the failed workflow run: Common errors:
✅ 4) If you are using a framework (React/Vite/Next)Your Pages workflow must build and upload the dist/build output, not the source code. Examples:
Make sure your workflow uploads the correct folder. ✅ 5) Fix by re-creating Pages workflow (easy)Go to: This regenerates a correct workflow for GitHub Pages. ✅ 6) Rename default branch if neededIf your default branch is not ✅ Quick checklist (most common)✅ If you paste the exact error lines from the failed action log, I can tell you the 1 exact fix in 1 reply. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Question
What GitHub Actions topic or product is this about?
General
Discussion Details
Repository is located at github.com/thanakornbua/thanakornbua.github.io
Failed action is: https://github.com/thanakornbua/thanakornbua.github.io/actions/runs/20929168089
Beta Was this translation helpful? Give feedback.
All reactions