add TEMPLATE_VER
This commit is contained in:
parent
e5730bd038
commit
c573c8a2d7
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user