mirror of
				https://github.com/yeslayla/build-godot-action.git
				synced 2025-11-04 16:23:04 +01:00 
			
		
		
		
	FEATURE: Optionally implement
This commit is contained in:
		@ -16,6 +16,9 @@ inputs:
 | 
			
		||||
    required: false
 | 
			
		||||
  projectDir:
 | 
			
		||||
    description: 'Location of Godot project in repository'
 | 
			
		||||
  debugMode:
 | 
			
		||||
    description: 'Whether or not to use `--export-debug`'
 | 
			
		||||
    default: false
 | 
			
		||||
runs:
 | 
			
		||||
  using: docker
 | 
			
		||||
  image: Dockerfile
 | 
			
		||||
@ -25,6 +28,7 @@ runs:
 | 
			
		||||
    - ${{ inputs.subdirectory }}
 | 
			
		||||
    - ${{ inputs.package }}
 | 
			
		||||
    - ${{ inputs.projectDir }}
 | 
			
		||||
    - ${{ inputs.debugMode }}
 | 
			
		||||
branding:
 | 
			
		||||
  icon: loader
 | 
			
		||||
  color: blue
 | 
			
		||||
@ -15,15 +15,22 @@ then
 | 
			
		||||
    SubDirectoryLocation="$3/"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
mode="export"
 | 
			
		||||
if [ "$6" = "true" ]
 | 
			
		||||
then
 | 
			
		||||
    mode="export-debug"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Export for project
 | 
			
		||||
echo "Building $1 for $2"
 | 
			
		||||
mkdir -p ~/build/${SubDirectoryLocation:-""}
 | 
			
		||||
cd ${5-"~"}
 | 
			
		||||
godot --export $2 ~/build/${SubDirectoryLocation:-""}$1
 | 
			
		||||
godot --${mode} $2 ~/build/${SubDirectoryLocation:-""}$1
 | 
			
		||||
cd ~
 | 
			
		||||
 | 
			
		||||
echo ::set-output name=build::~/build/${SubDirectoryLocation:-""}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if [ "$4" = "true" ]
 | 
			
		||||
then
 | 
			
		||||
    mkdir ~/package
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user