release_deploy.py script deploys releases from any supported location (a local path, an S3 bucket, an FTP server and so on) to your server or CDN. You can run it by hand or from your continuous integration system.
Set your deployment credentials before you run the script. To set up your server or CDN, see Configure the scripts for your server or CDN.
Requirements
- Python 3 and the modules in
requirements.txtfrom the release package. See Prepare the deployment scripts.
Required settings
Like every deployment script,release_deploy.py takes command-line arguments, JSON configuration files or both. See How configuration works. The examples here use the command line; the release package has sample JSON files for automating deployments.
At a minimum, set:
repository: a name for the part of your game this release belongs to, such asgameclient,map-assets,language_enorlauncher.source: full path to the folder with your release files. This can be a local path, an S3 bucket, a shared path or a CDN path in a supported protocol.version: a version number such as0.0.1or1.0.1. It’s optional but strongly recommended, because promotion and update path creation use it.sync_directory: full path to the destination for this release, in any of the same forms assource.base_url: the delivery URL your launcher downloads this repository from, for examplehttps://mycdn.net/mydirectory/.
repository
The launcher workflow and the promotion script use the repository name. Don’t use periods in it; underscores and dashes are fine. The name is case-sensitive, so use lowercase letters.source
The folder that contains your release files:- End the path with two backslashes:
"c:\path\with spaces\sample\source\\" - Use forward slashes:
"c:/path/with spaces/sample/source/" - Set it in the JSON configuration file:
"source": "c:/path/with spaces/sample/source/",
version
The version format is up to you, and periods are fine. The promotion and update path scripts can use it, so keep your scheme consistent.sync_directory
The folder on your server or CDN to deploy to. The script creates a repository folder structure there with all the content and metadata a launcher needs to sync the release.base_url
The HTTP or HTTPS delivery URL that matchessync_directory:
Run the script
Separate each argument with a space:- Scans the source files into a metafile.
- Converts and uploads the files to
sync_directory. - Creates a catalog file in the right folder at
sync_directory. - Adds an entry for this sync directory, repository and release to your
tracker.jsonfile.

