A Vite + React project for a browser-based snake game.
Prerequisites: Node.js
- Install dependencies:
npm install - Run the app:
npm run dev - Open the URL shown in the terminal to view the game.
This repository is configured to deploy dist/ to GitHub Pages via GitHub Actions.
The published site will be available at: https://hychang23.github.io/GAS/
To deploy successfully, enable GitHub Pages in the repository settings first:
- Go to
Settings→Pages - Set the source to
GitHub Actions - Save the settings
After Pages is enabled, the workflow will build and deploy ./dist automatically.
If auto-enabling Pages fails, you can still use this workflow once Pages is manually configured.
Option 1: Manual Setup (Simpler)
- Go to repository settings → Pages
- Set source to
GitHub Actions - The workflow will automatically deploy on next push
Option 2: Auto-enable with Personal Access Token
- Create a GitHub Personal Access Token with
repoorpages:writepermission - Add it as a repository secret named
PAGES_TOKEN - Update the workflow to use
token: ${{ secrets.PAGES_TOKEN }} - The workflow will automatically enable and deploy Pages