@@ -11,28 +11,29 @@ jobs:
1111 build :
1212 runs-on : ubuntu-latest
1313 steps :
14+ # 1. Checkout project
1415 - uses : actions/checkout@v3
1516
16- # 1 . Detect Unity version
17+ # 2 . Detect Unity version
1718 - name : Get Unity Version
1819 id : get-unity-version
1920 run : |
2021 version=$(grep "^m_EditorVersion:" ProjectSettings/ProjectVersion.txt | sed 's/m_EditorVersion: //')
2122 echo "version=$version" >> $GITHUB_OUTPUT
2223
23- # 2 . Request activation file (first run only)
24+ # 3 . Request activation file (first run only)
2425 - name : Unity - Request Activation File
2526 uses : game-ci/unity-request-activation-file@v2
2627 with :
2728 unityVersion : ${{ steps.get-unity-version.outputs.version }}
2829
2930 - name : Upload activation file
30- uses : actions/upload-artifact@v3
31+ uses : actions/upload-artifact@v4
3132 with :
3233 name : Unity_ActivationFile
3334 path : Unity_*.alf
3435
35- # 3 . Activate (after you add UNITY_LICENSE secret)
36+ # 4 . Activate (after you upload UNITY_LICENSE secret from .ulf file )
3637 - name : Unity - Activate
3738 if : env.UNITY_LICENSE != ''
3839 uses : game-ci/unity-activate@v2
4142 env :
4243 UNITY_LICENSE : ${{ secrets.UNITY_LICENSE }}
4344
44- # 4 . Build
45+ # 5 . Build
4546 - name : Unity - Build
4647 uses : game-ci/unity-builder@v4
4748 with :
4849 unityVersion : ${{ steps.get-unity-version.outputs.version }}
49- targetPlatform : Android # Or StandaloneWindows, WebGL , etc.
50+ targetPlatform : Android # Change to WebGL, StandaloneWindows, iOS , etc.
0 commit comments