2 Commits

Author SHA1 Message Date
7773d38d12 Allow Spaces in projectDir (#21)
* try to fix the space issue

* change project dir

* spaced preset name
2023-05-06 17:35:27 -04:00
7727f04a91 Update ReadMe.md 2022-04-27 01:57:29 -04:00
2 changed files with 8 additions and 8 deletions

View File

@ -42,7 +42,7 @@ jobs:
lfs: true
- name: Build
id: build
uses: josephbmanley/build-godot-action@v1.4.1
uses: manleydev/build-godot-action@v1.4.1
with:
name: example
preset: ${{ matrix.platform }}
@ -82,7 +82,7 @@ Additionally if you are not using a matrix, you can set the export preset as the
```yaml
- name: Build
id: build
uses: josephbmanley/build-godot-action@v1.4.1
uses: manleydev/build-godot-action@v1.4.1
with:
name: example
preset: win32
@ -95,7 +95,7 @@ To change the export name, you can the `name` parameter to whatever you want you
```yaml
- name: Build
id: build
uses: josephbmanley/build-godot-action@v1.4.1
uses: manleydev/build-godot-action@v1.4.1
with:
name: test # This project will export with the name "test"
```
@ -107,7 +107,7 @@ This example is set to build with debug mode enable. To disable debug, either se
```yaml
- name: Build
id: build
uses: josephbmanley/build-godot-action@v1.4.1
uses: manleydev/build-godot-action@v1.4.1
with:
name: example
preset: ${{ matrix.platform }}
@ -121,7 +121,7 @@ If your project is located in a subdirectory, you can use the `projectDir` to ch
```yaml
- name: Build
id: build
uses: josephbmanley/build-godot-action@v1.4.1
uses: manleydev/build-godot-action@v1.4.1
with:
name: example
preset: ${{ matrix.platform }}
@ -142,7 +142,7 @@ Example:
```yaml
steps:
- uses: josephbmanley/build-godot-action@[VERSION]
- uses: manleydev/build-godot-action@[VERSION]
with:
name: godot-project
preset: HTML5

View File

@ -19,8 +19,8 @@ fi
# Export for project
echo "Building $1 for $2"
mkdir -p $GITHUB_WORKSPACE/build/${SubDirectoryLocation:-""}
cd ${5-"$GITHUB_WORKSPACE"}
godot --${mode} $2 $GITHUB_WORKSPACE/build/${SubDirectoryLocation:-""}$1
cd "$GITHUB_WORKSPACE/$5"
godot --${mode} "$2" $GITHUB_WORKSPACE/build/${SubDirectoryLocation:-""}$1
echo "Build Done"
echo ::set-output name=build::build/${SubDirectoryLocation:-""}