Skip to main content

GitHub Actions

In your GitHub repository, create a .yml file under .github/workflows. You can use the following recipe in your .yml file as an example. For more information, see the official GitHub Actions Documentation.

Sample Recipe:

name: UGS CLI GitHub Actions Demo

## Choose what triggers your workflow, here it is triggered for every push
on: push

## Setting environment variables
env:
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"

## Setting the jobs
jobs:
demo-cli:
## You might want to change the runs-on depending on your needs
runs-on: self-hosted
steps:
- name: Download CLI
## Download the UGS CLI using GitHub CLI here
- name: Test CLI Commands
run: |
ugs --version
ugs config get project-id
ugs status
ugs env list
ugs deploy <directory-with-service-configurations> -j