File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 23
23
name : Unity Build 👽
24
24
runs-on : ubuntu-latest
25
25
steps :
26
- # Checkout (without LFS)
26
+ # Checkout repository
27
27
- name : Checkout repository
28
28
uses : actions/checkout@v3
29
29
with :
@@ -56,17 +56,19 @@ jobs:
56
56
restore-keys : |
57
57
Library-
58
58
59
- # Build the project ( using a Docker image)
59
+ # Build the project using Unity Builder (updated image)
60
60
- name : Build project
61
61
uses : game-ci/unity-builder@v2
62
+ with :
63
+ targetPlatform : WebGL # Use WebGL platform directly
64
+ unityVersion : 2022.3.10f1 # Ensure the Unity version is set correctly
65
+ allowDirtyBuild : true
62
66
env :
63
67
UNITY_LICENSE : ${{ secrets.UNITY_LICENSE }}
64
68
UNITY_EMAIL : ${{ secrets.UNITY_EMAIL }}
65
69
UNITY_PASSWORD : ${{ secrets.UNITY_PASSWORD }}
66
- with :
67
- targetPlatform : WebGL # Especificar directamente WebGL
68
- buildsPath : ${{ secrets.BUILD_PATH }}
69
- allowDirtyBuild : true
70
+ BUILD_PATH : ${{ secrets.BUILD_PATH }}
71
+ BUILD_NAME : WebGL
70
72
71
73
# Upload build artifact
72
74
- name : Upload Build Artifact
@@ -125,4 +127,4 @@ jobs:
125
127
git commit -m "Deployment"
126
128
git push
127
129
env :
128
- GH_TOKEN : ${{ secrets.PAT }} # Usar el token de autenticación para git push
130
+ GH_TOKEN : ${{ secrets.PAT }} # Use the authentication token for git push
You can’t perform that action at this time.
0 commit comments