mirror of
				https://github.com/yeslayla/build-godot-action.git
				synced 2025-11-04 16:23:04 +01:00 
			
		
		
		
	Merge pull request #10 from Tadaboody/bugfix/remove_double_download
Move existing templates instead of redownloading
This commit is contained in:
		@ -1,14 +1,8 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
set -e
 | 
			
		||||
 | 
			
		||||
# Install export templates
 | 
			
		||||
wget https://downloads.tuxfamily.org/godotengine/3.2.1/Godot_v3.2.1-stable_export_templates.tpz --quiet
 | 
			
		||||
mkdir ~/.cache
 | 
			
		||||
mkdir -p ~/.config/godot
 | 
			
		||||
mkdir -p ~/.local/share/godot/templates/3.2.1.stable
 | 
			
		||||
unzip Godot_v3.2.1-stable_export_templates.tpz
 | 
			
		||||
mv templates/* ~/.local/share/godot/templates/3.2.1.stable
 | 
			
		||||
rm -f Godot_v3.2.1-stable_export_templates.tpz
 | 
			
		||||
# Move godot templates already installed from the docker image to home
 | 
			
		||||
mv -n /root/.local ~
 | 
			
		||||
 | 
			
		||||
if [ "$3" != "" ]
 | 
			
		||||
then
 | 
			
		||||
@ -33,7 +27,7 @@ echo ::set-output name=build::~/build/${SubDirectoryLocation:-""}
 | 
			
		||||
 | 
			
		||||
if [ "$4" = "true" ]
 | 
			
		||||
then
 | 
			
		||||
    mkdir ~/package
 | 
			
		||||
    mkdir -p ~/package
 | 
			
		||||
    cd ~/build
 | 
			
		||||
    zip ~/package/artifact.zip ${SubDirectoryLocation:-"."} -r
 | 
			
		||||
    echo ::set-output name=artifact::~/package/artifact.zip
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user