diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index dc7220d..c15c32e 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -48,12 +48,13 @@ jobs: - name: Download and install export templates shell: bash 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" 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 - mkdir -p ~/.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/$(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/${TEMPLATE_VER}/ - name: Export project id: export