|
1 |
| -# Unity - Request Manual Activation File |
2 |
| -Github Action for requesting Unity's manual activation file. |
| 1 | +# Unity - Request Activation File |
| 2 | +[Github Action](https://github.com/features/actions) for requesting the manual activation file, used to acquire a Unity personal license. |
3 | 3 |
|
4 |
| -Required to acquire a license, used in the **Activate**, **Test** and **Build** actions |
| 4 | +Required for the |
| 5 | +[Activate](https://github.com/webbertakken/unity-actions#activate), |
| 6 | +[Test](https://github.com/webbertakken/unity-actions#test) and |
| 7 | +[Build](https://github.com/webbertakken/unity-actions#build) |
| 8 | +actions from the |
| 9 | +[Unity Actions](https://github.com/webbertakken/unity-actions) |
| 10 | +collection. |
5 | 11 |
|
6 |
| -This action is part of the [Unity Actions](https://github.com/webbertakken/unity-actions) collection |
| 12 | +## Usage |
| 13 | + |
| 14 | +Create a file called `.github/workflows/activation.yml` and add a job to it. |
| 15 | + |
| 16 | +```yaml |
| 17 | +name: Acquire activation file |
| 18 | +on: [push] |
| 19 | +jobs: |
| 20 | + activation: |
| 21 | + name: Request manual activation file 🔑 |
| 22 | + steps: |
| 23 | +``` |
| 24 | +
|
| 25 | +To **configure** this action, add this step and set the id. |
| 26 | +
|
| 27 | +```yaml |
| 28 | + # Request manual activation file |
| 29 | + - name: Request manual activation file |
| 30 | + uses: webbertakken/unity-request-manual-activation-file@v1 |
| 31 | + id: getManualLicenseFile |
| 32 | +``` |
| 33 | +
|
| 34 | +You use the id to **upload the output file** like so: |
| 35 | +
|
| 36 | +```yaml |
| 37 | + # Upload artifact (Unity_v20XX.X.XXXX.alf) |
| 38 | + - name: Expose as artifact |
| 39 | + uses: actions/upload-artifact@v1 |
| 40 | + with: |
| 41 | + name: ${{ steps.getManualLicenseFile.outputs.filePath }} |
| 42 | + path: ${{ steps.getManualLicenseFile.outputs.filePath }} |
| 43 | +``` |
| 44 | +
|
| 45 | +Commit and push your workflow definition. |
| 46 | +
|
| 47 | +## Activation |
| 48 | +
|
| 49 | +Follow these (one-time) steps for simple activation. |
| 50 | +
|
| 51 | +- Download the manual activation file that now appeared as an artifact. |
| 52 | +- Visit [license.unity3d.com](https://license.unity3d.com/manual) and upload it. |
| 53 | +- You should now receive your license file (Unity_v20XX.x.ulf) as a download. |
| 54 | +- Open `Github` > `Your repository` > `Settings` > `Secrets`. |
| 55 | +- Add a new secret called `UNITY_LICENSE` and copy the contents your license file into it. |
| 56 | + |
| 57 | +You can now use the |
| 58 | +[Activate](https://github.com/webbertakken/unity-actions#activate), |
| 59 | +[Test](https://github.com/webbertakken/unity-actions#test) and |
| 60 | +[Build](https://github.com/webbertakken/unity-actions#build) |
| 61 | +actions. |
| 62 | + |
| 63 | +## More actions |
| 64 | + |
| 65 | +Visit |
| 66 | +[webbertakken/unity-actions](https://github.com/webbertakken/unity-actions) |
| 67 | +to find related actions for Unity. |
0 commit comments