Your repository has been configured for GitHub Pages hosting with the following setup:
- File:
.github/workflows/deploy-pages.yml - What it does: Automatically builds and deploys to GitHub Pages on every push
- Triggers: Pushes to
mainbranch or manual workflow dispatch
.nojekyllinjavascript/folder - Serves static files without Jekyll processing_config.ymlin root - Jekyll configuration for GitHub Pages.github/dependabot.yml- Automated security updates for dependencies
setup-github-pages.sh- Linux/macOS setup and testingsetup-github-pages.bat- Windows setup and testing
GITHUB_PAGES_SETUP.md- Quick start guide (READ THIS FIRST!)docs/HOSTING_GUIDE.md- Comprehensive hosting documentation
- Go to your repository on GitHub
- Click Settings → Pages
- Under "Build and deployment":
- Source: Select
GitHub Actions
- Source: Select
- Click Save
git add .
git commit -m "Configure GitHub Pages hosting"
git push origin main- Go to Actions tab on GitHub
- Wait for the "Deploy to GitHub Pages" workflow to complete
- Should take 2-5 minutes
Your site will be available at:
https://<username>.github.io/<repository-name>/
./setup-github-pages.sh
# Compiles and starts server on http://localhost:8000/setup-github-pages.bat
# Compiles and starts server on http://localhost:8000/./CompileEPK.sh
./CompileJS.sh
cd javascript
python3 -m http.server 8000Only the javascript/ folder is deployed to GitHub Pages. This folder contains:
index.html- Main entry pointclasses.js- Compiled game clientassets.epk- Game assetslang/- Language filesfavicon.png- Website icon
All other folders (src/, build.gradle, docs/, etc.) are excluded from deployment.
After setup is complete, verify:
- GitHub Pages enabled in repository settings
- Workflow completed successfully (check Actions tab)
- Site accessible at GitHub Pages URL
- Game loads and initializes properly
- No console errors (F12 to check)
- Assets load correctly
- Server connection works (if applicable)
Your Code
↓
Git Push to main
↓
GitHub Actions Triggered
├── Compiles EPK (./CompileEPK.sh)
├── Compiles JavaScript (./CompileJS.sh)
└── Uploads javascript/ folder
↓
GitHub Pages Deploys
↓
Available at https://<username>.github.io/<repo>/
- Read
GITHUB_PAGES_SETUP.mdfor quick start guide - Enable GitHub Pages in Settings → Pages
- Push your changes to GitHub
- Monitor the Actions tab for deployment
- Test your site at the GitHub Pages URL
- Troubleshoot using
docs/HOSTING_GUIDE.mdif issues arise
Every time you push to the main branch, the workflow runs automatically.
Yes! Add a CNAME file with your domain name to the javascript/ folder and configure DNS.
Check the Actions tab for error logs. Common issues:
- Missing dependencies
- Java version incompatible
- Permissions issues
Yes, GitHub Pages sites are public by default. To make it private, you need a GitHub Pro subscription.
Yes, delete .github/workflows/deploy-pages.yml and deploy manually elsewhere.
- GitHub Pages Documentation
- GitHub Actions Documentation
- Check
docs/HOSTING_GUIDE.mdfor detailed troubleshooting - Check
EAGLERCRAFTX_README.mdfor project-specific help
Your repository is ready for GitHub Pages! 🎉
Read GITHUB_PAGES_SETUP.md for the quick start guide.