chore(ci): cp from /cache with wget fallback, fix release tokens
This commit is contained in:
@@ -22,7 +22,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup Godot
|
- name: Setup Godot
|
||||||
run: |
|
run: |
|
||||||
|
if [ -f /cache/Godot_v4.6-stable_linux.x86_64.zip ]; then
|
||||||
cp /cache/Godot_v4.6-stable_linux.x86_64.zip ./godot.zip
|
cp /cache/Godot_v4.6-stable_linux.x86_64.zip ./godot.zip
|
||||||
|
else
|
||||||
|
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip
|
||||||
|
fi
|
||||||
unzip -q godot.zip
|
unzip -q godot.zip
|
||||||
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
||||||
chmod +x /usr/local/bin/godot
|
chmod +x /usr/local/bin/godot
|
||||||
@@ -30,7 +34,11 @@ jobs:
|
|||||||
- name: Install export templates
|
- name: Install export templates
|
||||||
run: |
|
run: |
|
||||||
mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable
|
mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable
|
||||||
|
if [ -f /cache/Godot_v4.6-stable_export_templates.tpz ]; then
|
||||||
cp /cache/Godot_v4.6-stable_export_templates.tpz /tmp/godot-templates.tpz
|
cp /cache/Godot_v4.6-stable_export_templates.tpz /tmp/godot-templates.tpz
|
||||||
|
else
|
||||||
|
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz -O /tmp/godot-templates.tpz
|
||||||
|
fi
|
||||||
unzip -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
unzip -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
||||||
if [ -d /tmp/godot-templates/templates ]; then
|
if [ -d /tmp/godot-templates/templates ]; then
|
||||||
cp -a /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/
|
cp -a /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/
|
||||||
@@ -65,7 +73,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup Godot
|
- name: Setup Godot
|
||||||
run: |
|
run: |
|
||||||
|
if [ -f /cache/Godot_v4.6-stable_linux.x86_64.zip ]; then
|
||||||
cp /cache/Godot_v4.6-stable_linux.x86_64.zip ./godot.zip
|
cp /cache/Godot_v4.6-stable_linux.x86_64.zip ./godot.zip
|
||||||
|
else
|
||||||
|
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip
|
||||||
|
fi
|
||||||
unzip -q godot.zip
|
unzip -q godot.zip
|
||||||
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
||||||
chmod +x /usr/local/bin/godot
|
chmod +x /usr/local/bin/godot
|
||||||
@@ -73,7 +85,11 @@ jobs:
|
|||||||
- name: Install export templates
|
- name: Install export templates
|
||||||
run: |
|
run: |
|
||||||
mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable
|
mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable
|
||||||
|
if [ -f /cache/Godot_v4.6-stable_export_templates.tpz ]; then
|
||||||
cp /cache/Godot_v4.6-stable_export_templates.tpz /tmp/godot-templates.tpz
|
cp /cache/Godot_v4.6-stable_export_templates.tpz /tmp/godot-templates.tpz
|
||||||
|
else
|
||||||
|
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz -O /tmp/godot-templates.tpz
|
||||||
|
fi
|
||||||
unzip -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
unzip -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
||||||
if [ -d /tmp/godot-templates/templates ]; then
|
if [ -d /tmp/godot-templates/templates ]; then
|
||||||
cp -a /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/
|
cp -a /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/
|
||||||
|
|||||||
Reference in New Issue
Block a user