fix: flatten templates/ subfolder after tpz unzip for CI exports

This commit is contained in:
2026-06-18 15:37:14 +08:00
parent 231b06a01d
commit acd139ca92
2 changed files with 30 additions and 11 deletions
+10 -1
View File
@@ -7,7 +7,7 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Version to build (e.g., 2.3.8)'
description: 'Version to build (e.g., 2.4.0)'
required: true
type: string
@@ -42,6 +42,15 @@ jobs:
version: '4.6.0'
use-dotnet: false
- name: Setup Export Templates
run: |
TEMPLATES_DIR=~/.local/share/godot/export_templates/4.6.stable
mkdir -p "$TEMPLATES_DIR"
wget -q https://github.com/godotengine/godot/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz -O templates.tpz
unzip -q templates.tpz -d "$TEMPLATES_DIR"
mv "$TEMPLATES_DIR/templates/"* "$TEMPLATES_DIR/"
rmdir "$TEMPLATES_DIR/templates"
- name: Setup Android SDK (Android only)
if: matrix.platform.name == 'Android'
uses: android-actions/setup-android@v3