If you want true "Build Now" functionality where pushing code triggers a fresh game build, use this .github/workflows/build.yml template:
name: Build Now GGon: push: branches: [ "main" ]
jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4
- name: Setup Node.js uses: actions/setup-node@v3 with: node-version: '18' - name: Install Dependencies run: npm install - name: Build Game Assets run: npm run build_webgl - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: $ secrets.GITHUB_TOKEN publish_dir: ./build/webgl
Every time you type git push, GitHub Actions automatically runs the build script and deploys the fresh version. That is the essence of "Build Now GG."
To start building a website with GitHub Pages, follow these steps: build now gg github io
Even on a stable github.io deployment, you may encounter problems. Here are the fixes.
Issue 1: "The page loads, but the 3D view is black."
Issue 2: "Multiplayer lag / Desync"
Issue 3: "My game disappeared after refreshing"
Issue 4: "Visual Scripting nodes won't connect"