Skip to content

Commit 844a167

Browse files
committed
Also build webgpu version when version is >= 6000
1 parent df4465a commit 844a167

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/upgrade-unity.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
customParameters: ${{ inputs.customParameters }}
138138
unityVersion: ${{ inputs.unityVersion }}
139139
targetPlatform: WebGL
140-
buildName: ${{ needs.variables.outputs.BUILD_NAME }}
140+
buildName: ${{ steps.upgrade_name.outputs.NAME }}
141141
allowDirtyBuild: true
142142
manualExit: true
143143

@@ -169,7 +169,7 @@ jobs:
169169
if: ${{ inputs.createTags || inputs.tagsOnly }}
170170
run: |
171171
# Extract the first four characters of UNITY_VERSION
172-
UNITY_YEAR=${UNITY_VERSION:0:4}
172+
MAJOR_VERSION=${UNITY_VERSION:0:4}
173173
BRANCH_NAME=${GITHUB_REF#refs/heads/}
174174
175175
TAG_PREFIX=$UNITY_VERSION
@@ -178,7 +178,7 @@ jobs:
178178
TAG_PREFIX=$UNITY_VERSION-urp
179179
fi
180180
181-
if [[ "$UNITY_YEAR" < "2023" ]]
181+
if [[ "$MAJOR_VERSION" < "2023" ]]
182182
then
183183
git tag -a -f $TAG_PREFIX-minsize-webgl1 -m "[Automated workflow] Created by upgrade-unity"
184184
git tag -a -f $TAG_PREFIX-webgl1 -m "[Automated workflow] Created by upgrade-unity"
@@ -191,6 +191,11 @@ jobs:
191191
git tag -a -f $TAG_PREFIX-webgl2 -m "[Automated workflow] Created by upgrade-unity"
192192
git tag -a -f $TAG_PREFIX-webgl2-debug -m "[Automated workflow] Created by upgrade-unity"
193193
194+
if [[ "$MAJOR_VERSION" >= "6000" ]]
195+
then
196+
git tag -a -f $TAG_PREFIX-webgpu -m "[Automated workflow] Created by upgrade-unity"
197+
fi
198+
194199
git push origin -f --tags
195200
env:
196201
UNITY_VERSION: ${{ inputs.unityVersion }}

0 commit comments

Comments
 (0)