game-deploy

Deploy browser games to static hosting via automated build and publish steps.

307|37|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/OpusGameLabs/game-creator --skill game-deploy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: game-deploy
Source: https://github.com/OpusGameLabs/game-creator/tree/main/skills/game-deploy
Command: npx skills add https://github.com/OpusGameLabs/game-creator --skill game-deploy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a streamlined deployment workflow that takes a finished browser game from build to public hosting, reducing manual setup and configuration.

Core Features & Use Cases

  • One-step deployment: Build the game and publish to GitHub Pages or alternative hosting with minimal commands.
  • Hosting flexibility: Supports GitHub Pages, Vercel, Netlify, itch.io, and other static hosting providers.
  • Configuration cues: Guides base path adjustments in vite.config.js and ensures the dist/assets are correctly published.

Quick Start

Use npm run build to produce a production bundle, then deploy to GitHub Pages with npx gh-pages -d dist. If deploying to subdirectories, configure base in vite.config.js as needed.

Frequently Asked Questions about game-deploy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a browser game to GitHub Pages using Vite?

To deploy a browser game to GitHub Pages, run npm run build to generate the production bundle, then use npx gh-pages -d dist to publish the dist directory directly to your hosting destination.

Why does my Vite game build show broken asset paths on GitHub Pages?

Broken asset paths occur when the base path in vite.config.js is not configured for your hosting subdirectory. You must set the base option to match your repository name or subdirectory path before running the build.

Can I use this to deploy a static game build to Netlify or Vercel?

Yes, you can deploy a static game build to Netlify, Vercel, or itch.io. The workflow supports multiple static hosting providers by automating the build and publish steps after your game build completes.

Do I need an npm build script to publish my browser game?

Yes, an npm build script is required to produce the production bundle. The deployment workflow relies on npm run build to generate the dist folder and its assets before publishing to your hosting destination.

What's the best way to automate game deployment to static hosting?

The best way to automate game deployment is using a one-step workflow that builds the game and publishes the dist directory. This reduces manual setup by combining the build and publish steps into a single reliable flow.

Are there limitations when deploying a Vite game to itch.io?

Deploying to itch.io requires a properly configured base path in vite.config.js and a successful npm run build. The workflow supports static hosting, but you must ensure dist/assets are correctly published for the game to load.