Unity - Request Activation File
GitHub Action for requesting the manual activation file for Unity.
Part of the Unity Actions collection.
Use this action to acquire a Unity personal license. Required in order to use the Activate, Test and Build actions.
Documentation
See the Unity Actions collection repository for workflow documentation and reference implementation.
Usage
Create a file called .github/workflows/activation.yml
and add a job to it.
name: Acquire activation file
on: [push]
jobs:
activation:
name: Request manual activation file 🔑
runs-on: ubuntu-latest
steps:
To configure this action, add this step and set the id.
# Request manual activation file
- name: Request manual activation file
id: getManualLicenseFile
uses: webbertakken/unity-request-manual-activation-file@v1.1
with:
unityVersion: 2019.2.11f1
You use the id to upload the output file like so:
# Upload artifact (Unity_v20XX.X.XXXX.alf)
- name: Expose as artifact
uses: actions/upload-artifact@v1
with:
name: ${{ steps.getManualLicenseFile.outputs.filePath }}
path: ${{ steps.getManualLicenseFile.outputs.filePath }}
Commit and push your workflow definition.
Activation
Follow these (one-time) steps for simple activation.
- Download the manual activation file that now appeared as an artifact.
- Visit license.unity3d.com and upload it.
- You should now receive your license file (Unity_v20XX.x.ulf) as a download.
- Open
Github
>Your repository
>Settings
>Secrets
. - Add a new secret called
UNITY_LICENSE
and copy the contents your license file into it.
You can now use the Activate, Test and Build actions.
More actions
Visit Unity Actions to find related actions for Unity.
Feel free to contribute.