Unity Build Automation
Learn how to integrate the CLI with Unity Build Automation.
읽는 시간 1분최근 업데이트: 3달 전
In your Dashboard, navigate to > > and create a new configuration.
DevOpsBuild AutomationConfigurationsIn the advanced settings for your new configuration, you can set environment variables.
As an example, try setting the following environment variables:
Variable | Value |
|---|---|
| UGS_CLI_PROJECT_ID | your-project-id |
| UGS_CLI_SERVICE_KEY_ID | your-service-key-id |
| UGS_CLI_SERVICE_SECRET_KEY | your-service-secret-key |
In the repository you've configured for your services, create a new file that will contain your UGS CLI commands. Then, in your new configuration's advanced settings, set a script hook with the name of the file. There are two fields which lets you execute your file before building, or which executes your file after building.
.sh.shpre-buildpost-buildExample content for the file:
.sh#!/bin/bashugs --versionugs config get environmentugs statusugs env listugs deploy <directory-with-service-configurations> -j