Skip to content

Commit db3b702

Browse files
kfjgo
1 parent 8aa05f3 commit db3b702

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.github/workflows/unity-build.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,21 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17+
18+
19+
20+
# ADD THIS DEBUGGING STEP
21+
- name: 🤫 Check if Secret is Loaded
22+
run: |
23+
if [ -z "${{ secrets.UNITY_LICENSE }}" ]; then
24+
echo "❌ ERROR: UNITY_LICENSE secret is NOT set or is empty!"
25+
exit 1
26+
else
27+
echo "✅ SUCCESS: UNITY_LICENSE secret is loaded."
28+
fi
29+
30+
31+
1732
# 1. Checkout the repository to the runner
1833
- name: Checkout project
1934
uses: actions/checkout@v4
@@ -44,17 +59,4 @@ jobs:
4459
path: build/WebGL
4560

4661

47-
# ADD THIS DEBUGGING STEP
48-
- name: 🤫 Check if Secret is Loaded
49-
run: |
50-
if [ -z "${{ secrets.UNITY_LICENSE }}" ]; then
51-
echo "❌ ERROR: UNITY_LICENSE secret is NOT set or is empty!"
52-
exit 1
53-
else
54-
echo "✅ SUCCESS: UNITY_LICENSE secret is loaded."
55-
fi
56-
57-
# YOUR EXISTING BUILD STEP
58-
- name: Unity - Build
59-
uses: game-ci/unity-builder@v4
60-
# ... rest of your build step
62+

0 commit comments

Comments
 (0)