GitHub Action to activate personal or professional Unity license. License will be automatically returned at the end of a job.
Works on Linux, macOS and Windows.
Path to Unity executable. UNITY_PATH
env will be used if not provided.
Required Unity account username.
Required Unity account password.
Unity account authenticator key for Authenticator App (Two Factor Authentication). Used for account verification during Personal license activation.
Unity license serial key. Used for Plus/Professional license activation.
- Login to Unity account
- Go to account settings
- Activate Two Factor Authentication through Authenticator App
- On page with QR code click "Can't scan the barcode?" and save key (remove spaces in it)
- Finish activation
- name: Checkout project
uses: actions/checkout@v2
- name: Setup Unity
uses: kuler90/setup-unity@v1
with:
unity-modules: android
- name: Activate Unity
uses: kuler90/activate-unity@v1
with:
unity-username: ${{ secrets.UNITY_USERNAME }}
unity-password: ${{ secrets.UNITY_PASSWORD }}
unity-authenticator-key: ${{ secrets.UNITY_AUTHENTICATOR_KEY }}
- name: Build Unity
uses: kuler90/build-unity@v1
with:
build-target: Android
build-path: ./build.apk