mirror of
				https://github.com/yeslayla/build-godot-action.git
				synced 2025-11-04 08:13:04 +01:00 
			
		
		
		
	Compare commits
	
		
			4 Commits
		
	
	
		
			v1.5.0
			...
			778ecaf0da
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 778ecaf0da | |||
| 8b73ce192f | |||
| f759ed7f8f | |||
| 4117f9a9b0 | 
@ -3,7 +3,7 @@ set -e
 | 
			
		||||
 | 
			
		||||
# Move godot templates already installed from the docker image to home
 | 
			
		||||
mkdir -v -p ~/.local/share/godot/export_templates
 | 
			
		||||
cp -a /root/.local/share/godot/templates/. ~/.local/share/godot/export_templates/
 | 
			
		||||
cp -a /root/.local/share/godot/export_templates/. ~/.local/share/godot/export_templates/
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if [ "$3" != "" ]
 | 
			
		||||
@ -25,7 +25,7 @@ cd "$GITHUB_WORKSPACE/$5"
 | 
			
		||||
godot --headless --${mode} "$2" $GITHUB_WORKSPACE/build/${SubDirectoryLocation:-""}$1
 | 
			
		||||
echo "Build Done"
 | 
			
		||||
 | 
			
		||||
echo ::set-output name=build::build/${SubDirectoryLocation:-""}
 | 
			
		||||
echo build=build/${SubDirectoryLocation:-""} >> $GITHUB_OUTPUT
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if [ "$4" = "true" ]
 | 
			
		||||
@ -34,6 +34,6 @@ then
 | 
			
		||||
    mkdir -p $GITHUB_WORKSPACE/package
 | 
			
		||||
    cd $GITHUB_WORKSPACE/build
 | 
			
		||||
    zip $GITHUB_WORKSPACE/package/artifact.zip ${SubDirectoryLocation:-"."} -r
 | 
			
		||||
    echo ::set-output name=artifact::package/artifact.zip
 | 
			
		||||
    echo artifact=package/artifact.zip >> $GITHUB_OUTPUT
 | 
			
		||||
    echo "Done"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user