Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
box

GitHub Action

Unity - Activate

v1

Unity - Activate

box

Unity - Activate

Activate Unity using credentials or a license file. Both personal and professional licenses are supported

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Unity - Activate

uses: game-ci/unity-activate@v1

Learn more about this action in game-ci/unity-activate

Choose a version

Unity - Activate

Actions status

Github Action to activate Unity using credentials or a license file. Both personal and professional licenses are supported.

Use this action to verify whether your license file is correctly configured. If so, you will be able to run the Test and Build actions from the Unity Actions collection too.

Usage

Create or edit the file called .github/workflows/activation.yml and add a job to it.

name: Acquire activation file
on: [push]
jobs:
  requestActivation:
    name: Request activation ✔
    runs-on: ubuntu-latest
    steps:

Continue to either the personal license or professional license section below.

Personal license

  1. Follow the activation section from request action to set UNITY_LICENSE variable.
  2. Use the action as follows:
- name: Activate Unity
  uses: webbertakken/unity-activate@v1
  env:
    UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}

Professional license

  1. Goto Repository > Settings > Secrets
  2. Set the following secrets:
    • UNITY_EMAIL: <your_unity_login_email_address>
    • UNITY_PASSWORD: <your_unity_login_password>
    • UNITY_SERIAL: <your_unity_serial>
  3. Use the action as follows:
- name: Activate Unity
  uses: webbertakken/unity-activate@v1
  env:
    UNITY_EMAIL:    ${{ secrets.UNITY_EMAIL }}
    UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
    UNITY_SERIAL:   ${{ secrets.UNITY_SERIAL }}

Note: I was not able to verify these steps as i don't have a pro license. Feel free to give feedback or contribute.

More actions

Visit Unity Actions to find related actions for Unity.