Upload a new version
gamealia_upload_versionBuild, zip, and upload a local game build as a new version to the server, then wait for autotest results and return the version state and report.
Instructions
Builds (unless noBuild), zips and uploads the local build as a new version of an existing game (needs login; multipart, retried), then waits for the server autotest and returns the version state and its report. Use it after gamealia_run_autotest passes locally and gamealia_create_game. Each call creates a new version; interrupted uploads that block it are aborted automatically. Can take minutes (progress notifications). submit:true also submits it for review when the autotest passes: only after the user confirmed; otherwise use gamealia_submit_for_review later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | Project folder (absolute, or relative to the server's working directory) | |
| game | Yes | Game slug or id, from gamealia_list_games (a game of the active account) | |
| notes | No | Release notes for this version, up to 2000 characters (shown to the reviewer) | |
| submit | No | Also submit for review if the server autotest passes (only after the user confirms) | |
| noBuild | No | Skip the build command and upload the current output folder as is (default false: build first) | |
| waitForPrevious | No | If a previous version is still being tested, wait for it instead of failing |