add TEMPLATE_VER
Some checks failed
Build Godot Project1 / godot (${PROJECT_NAME}.exe, windows) (push) Successful in 1m34s
Build Godot Project1 / godot (${PROJECT_NAME}.zip, mac) (push) Has been cancelled
Build Godot Project1 / godot (${PROJECT_NAME}.x86_64, linux) (push) Has been cancelled

This commit is contained in:
Teatov 2025-03-06 23:17:23 +10:00
parent e5730bd038
commit c573c8a2d7

View File

@ -48,12 +48,13 @@ jobs:
- name: Download and install export templates - name: Download and install export templates
shell: bash shell: bash
run: | run: |
mkdir -p ~/.local/share/godot/export_templates/$(echo ${GODOT_VERSION} | sed 's/[^a-zA-Z0-9_]/./g') TEMPLATE_VER=$(echo ${GODOT_VERSION} | sed 's/[^a-zA-Z0-9_]/./g')
mkdir -p ~/.local/share/godot/export_templates/${TEMPLATE_VER}
TEMPLATES_BASENAME="Godot_v${GODOT_VERSION}_export_templates" TEMPLATES_BASENAME="Godot_v${GODOT_VERSION}_export_templates"
wget -q "https://github.com/godotengine/godot-builds/releases/download/${GODOT_VERSION}/${TEMPLATES_BASENAME}.tpz" -O ~/templates.tpz wget -q "https://github.com/godotengine/godot-builds/releases/download/${GODOT_VERSION}/${TEMPLATES_BASENAME}.tpz" -O ~/templates.tpz
unzip -q ~/templates.tpz -d ~/.local/share/godot/export_templates/temp unzip -q ~/templates.tpz -d ~/.local/share/godot/export_templates/temp
mkdir -p ~/.local/share/godot/export_templates/$(echo ${GODOT_VERSION} | sed 's/[^a-zA-Z0-9_]/./g') mkdir -p ~/.local/share/godot/export_templates/${TEMPLATE_VER}
mv ~/.local/share/godot/export_templates/temp/templates/* ~/.local/share/godot/export_templates/$(echo ${GODOT_VERSION} | sed 's/[^a-zA-Z0-9_]/./g')/ mv ~/.local/share/godot/export_templates/temp/templates/* ~/.local/share/godot/export_templates/${TEMPLATE_VER}/
- name: Export project - name: Export project
id: export id: export