fix: flatten templates/ subfolder after tpz unzip for CI exports
This commit is contained in:
+20
-10
@@ -7,7 +7,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: 'Version to build (e.g., 2.3.8)'
|
description: 'Version to build (e.g., 2.4.0)'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
@@ -29,9 +29,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup Export Templates
|
- name: Setup Export Templates
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.local/share/godot/export_templates/4.6.stable
|
TEMPLATES_DIR=~/.local/share/godot/export_templates/4.6.stable
|
||||||
wget https://github.com/godotengine/godot/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz
|
mkdir -p "$TEMPLATES_DIR"
|
||||||
unzip Godot_v4.6-stable_export_templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable
|
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"
|
||||||
|
# tpz extracts into templates/ subfolder — flatten it
|
||||||
|
mv "$TEMPLATES_DIR/templates/"* "$TEMPLATES_DIR/"
|
||||||
|
rmdir "$TEMPLATES_DIR/templates"
|
||||||
|
|
||||||
- name: Export Windows Build
|
- name: Export Windows Build
|
||||||
run: |
|
run: |
|
||||||
@@ -62,9 +66,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup Export Templates
|
- name: Setup Export Templates
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.local/share/godot/export_templates/4.6.stable
|
TEMPLATES_DIR=~/.local/share/godot/export_templates/4.6.stable
|
||||||
wget https://github.com/godotengine/godot/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz
|
mkdir -p "$TEMPLATES_DIR"
|
||||||
unzip Godot_v4.6-stable_export_templates.tpz -d ~/.local/share/godot/export_templates/4.6.stable
|
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
|
- name: Setup Android SDK
|
||||||
uses: android-actions/setup-android@v3
|
uses: android-actions/setup-android@v3
|
||||||
@@ -98,9 +105,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup Export Templates
|
- name: Setup Export Templates
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/Library/Application\ Support/Godot/export_templates/4.6.stable
|
TEMPLATES_DIR=~/Library/Application\ Support/Godot/export_templates/4.6.stable
|
||||||
wget https://github.com/godotengine/godot/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz
|
mkdir -p "$TEMPLATES_DIR"
|
||||||
unzip Godot_v4.6-stable_export_templates.tpz -d ~/Library/Application\ Support/Godot/export_templates/4.6.stable
|
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: Export macOS Build
|
- name: Export macOS Build
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: 'Version to build (e.g., 2.3.8)'
|
description: 'Version to build (e.g., 2.4.0)'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
@@ -42,6 +42,15 @@ jobs:
|
|||||||
version: '4.6.0'
|
version: '4.6.0'
|
||||||
use-dotnet: false
|
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)
|
- name: Setup Android SDK (Android only)
|
||||||
if: matrix.platform.name == 'Android'
|
if: matrix.platform.name == 'Android'
|
||||||
uses: android-actions/setup-android@v3
|
uses: android-actions/setup-android@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user