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

View File

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