7 Commits

Author SHA1 Message Date
b6670be025 Merge branch 'master' of github.com:josephbmanley/build-godot-action 2019-11-30 00:05:24 -05:00
e8b4e439a5 BUGFIX - SUBDIR 2019-11-30 00:05:16 -05:00
f41cbbd786 Update ReadMe.md 2019-11-29 23:57:53 -05:00
337ddc6155 Merge branch 'master' of github.com:josephbmanley/build-godot-action 2019-11-29 23:55:57 -05:00
a8c36a5f54 Add subdirectories 2019-11-29 23:55:42 -05:00
4c54598c55 Update ReadMe.md 2019-11-29 23:34:12 -05:00
0ca1161ddb Update ReadMe.md
Fixes the tag used in the example.
2019-11-29 18:40:21 -05:00
2 changed files with 14 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# Build Godot
# Build Godot Project
This action builds the godot project in your `$GITHUB_WORKSPACE`, so that you can easily automate builds.
@ -10,9 +10,10 @@ Example:
```yaml
steps:
- uses: josephbmanley/build-godot-action@develop
- uses: josephbmanley/build-godot-action@master
env:
PROJECT: godot-project
SUBDIRECTORY: project
```
### Environment Variables
@ -23,6 +24,12 @@ steps:
Eg. `godot-project` will export to `godot-project.exe`
- #### SUBDIRECTORY
Subdirectory to export project into.
Eg. `project` will export to `$GITHUB_WORKSPACE/build/windows/project/godot-project.exe`
## Credits
This action uses the [godot-ci](https://github.com/aBARICHELLO/godot-ci) docker image from [BARICHELLO](https://github.com/aBARICHELLO)

View File

@ -1,6 +1,8 @@
#!/bin/sh
set -e
wget https://downloads.tuxfamily.org/godotengine/3.1.1/Godot_v3.1.1-stable_export_templates.tpz --quiet
mkdir ~/.cache
mkdir -p ~/.config/godot
@ -11,12 +13,12 @@ rm -f Godot_v3.1.1-stable_export_templates.tpz
# Export for Linux
mkdir -p ./build/linux
godot --export Linux/X11 ./build/linux/${PROJECT}
godot --export Linux/X11 ./build/linux/${SUBDIRECTORY:-""}${PROJECT}
# Export for Windows
mkdir -p ./build/windows
godot --export "Windows Desktop" ./build/windows/${PROJECT}.exe
godot --export "Windows Desktop" ./build/windows/${SUBDIRECTORY:-""}${PROJECT}.exe
# Export for OSX
mkdir -p ./builds/mac
godot --export "Mac OSX" ./build/mac/${PROJECT}
godot --export "Mac OSX" ./build/mac/${SUBDIRECTORY:-""}${PROJECT}