Skip to main content

Deploying Games from GitHub

arc deploy git releases your game from GitHub instead of from your machine. It pushes a release tag, GitHub Actions builds the game from that commit, and Arcadible publishes it. Every release maps to a commit, and anyone who can push to the repository can release the game without an Arcadible login, which is how a team shares deploys.

Direct deploys upload a zip from your machine. Git deploys push a release tag that GitHub Actions builds and publishes. Direct 01 arc deploy On your machine 02 zip upload Your build 03 Arcadible Publishes it Git 01 arc deploy git On your machine 02 v1.2.0 A release tag 03 GitHub Actions Builds it 04 Arcadible Publishes it

Set it up​

  1. Deploy the game once with arc deploy. A release from GitHub publishes builds of a game that's already on Arcadible. It can't create one.
  2. Push the project with the release workflow. The starters include .github/workflows/arcadible-release.yml. In a project of your own, add it from What the workflow does, and also:
    • commit a lockfile, if there's a package.json;
    • add .arc/ to .gitignore, since arc deploy writes its zip there, and arc deploy git refuses uncommitted files.
  3. Install the Arcadible GitHub App. In Arcadible Studio, go to Settings ▸ Integrations. If it's already installed on your account or organization, choose Connect an existing installation.
  4. Connect the repository on the game's Repository tab, and choose Connect. A repository deploys one game, whose arcadible.toml is at the repository's root: the workflow builds from there.

Steps 1, 3, and 4 are the game's owner's: the first deploy needs arc logged in to their account, and the App and the repository are connected in Arcadible Studio, in a browser. Anyone working in the repository can do step 2.

To make git the default for arc deploy, add a .arcrc:

.arcrc
[deploy]
method = git

Release a version​

Bump version, commit, and run:

arc deploy git

The CLI checks that everything is committed, that the release workflow is there, that origin is reachable, that the version isn't published, and that origin is the game's connected repository, then pushes the tag arcadible/release/v<version> on HEAD. It waits while GitHub Actions builds the release and Arcadible publishes it, then prints Published v1.2.0 to production. See git for every check and message.

What the workflow does​

The starter's workflow runs on any tag matching arcadible/release/v* and calls Arcadible's reusable workflow, arcadible/workflows/.github/workflows/release.yml@v1:

.github/workflows/arcadible-release.yml
name: Arcadible Release

on:
push:
tags:
- "arcadible/release/v*"

permissions:
contents: write

jobs:
release:
uses: arcadible/workflows/.github/workflows/release.yml@v1

It runs three jobs, on Node.js 24:

JobDoes
setupInstalls the CLI, runs arc validate, and checks that the tag matches version
buildInstalls dependencies from the lockfile when there's a build, then runs workflow.build and arc pack
publishCreates a GitHub Release named after the repository and version, with the zip attached, which Arcadible publishes
  • Keep contents: write. The publish job needs it to create the GitHub Release.
  • Commit a lockfile if the project has a package.json. arc deploy git requires one, and the workflow installs and caches dependencies by it.

The check on each release​

Arcadible adds a check named Arcadible to the tagged commit, next to the workflow's own checks. It passes with Version 1.2.0 accepted once Arcadible has the build, or fails with what happened, the reason, and a link to Arcadible Studio. Each reason, and how to fix it, is in Release failure reasons.

Arcadible also emails the game's owner when the build is published or the release fails, whoever pushed the tag.

When a release doesn't arrive​

What you seeWhyWhat to do
GitHub emails that the workflow run failedA job failed, often arc validate or the build. Arcadible never receives the release.Open the run on the repository's Actions tab, fix the cause, delete the tag as below, and deploy again.
arc deploy git times out, and the Actions run is still goingThe build takes longer than 15 minutes.Wait for the run, or pass a longer --timeout.
The Arcadible check failsArcadible refused the release.Read the check's reason, and see Release failure reasons.
The check says This GitHub account isn't connected to Arcadible.The App is installed on GitHub, but no Arcadible account has connected the installation.In Arcadible Studio's Settings ▸ Integrations, choose Connect an existing installation, as in Set it up.

arc deploy git refuses a version whose tag already exists. After a failed run, nothing was published, so delete the tag locally and on origin (git push origin :refs/tags/arcadible/release/v1.2.0) and release the same version again, or release a higher one.

Releasing as a team​

Anyone who can push tags to the repository can release the game, and builds are published to the game's owner's account. Only the game's handle is the owner's alone: it changes only with arc deploy, and a git release that would change it fails (game_handle_changed). Whoever releases, logged in to Arcadible or not, arc deploy git checks the repository first and waits until the release is published or fails, and says why. The Arcadible check on the tagged commit says the same, and the owner gets the email either way. To limit who can release, add a tag ruleset on GitHub that restricts creating tags matching arcadible/release/*.

Other CI providers​

arc login is finished in a browser, so other CI providers can't currently deploy. Release from GitHub Actions with arc deploy git.

Next steps​

  • Releases: where you hear about a release, and how to fix a failed one.
  • arc deploy: every check arc deploy git runs, and its output.
  • FAQ: common questions about deploying.