Deploying your game
Manual Deployment
- Go to UrTurn Dev Console.
- Click
create game
oredit
an existing game - Fill in the required fields
- Provide the commit SHA that you want to deploy. Usually you can get the commit SHA with this command, which gets the latest commit for your
published
branch.
# In the directory of your game repository
$ git log -n 1 --pretty=format:"%H" origin/published
9cf2a6c11accb1d49d1b488985eb1df37c753d4a
- Click
Create
orUpdate
, and try playing your game! Updates should be instant.
Continuous Deployment
caution
Not supported yet. Join the early release wait list on discord, so we can notify you when we add support.
Build Artifact Spec
The commit
that is deployed in production needs to have the format:
game
│ index.js # rollup should transpile all of you javascript files and dependencies into this file
| thumbnail.png # not required, but if not provided UrTurn will display a stock image for your game
|
└───frontend/build
│ │ # all the built html, css, javascript files go here
Here is an example for TicTacToe.
tip
This is easily achieved using GitHub Actions. Steps in getting started should automatically generate the correct actions for you.