build-godot-action/ReadMe.md

42 lines
1.1 KiB
Markdown
Raw Normal View History

2019-11-30 05:34:12 +01:00
# Build Godot Project
2019-11-30 00:32:35 +01:00
This action builds the godot project in your `$GITHUB_WORKSPACE`, so that you can easily automate builds.
## Usage
2019-11-30 00:34:21 +01:00
This action will create a `build` folder with subdirectories for linux, windows, and mac. You must have the export preset configured for each platform to successfully export.
2019-11-30 00:32:35 +01:00
Example:
```yaml
steps:
2019-11-30 05:57:53 +01:00
- uses: josephbmanley/build-godot-action@master
2019-11-30 00:32:35 +01:00
env:
PROJECT: godot-project
2019-11-30 05:55:42 +01:00
SUBDIRECTORY: project
2019-11-30 00:32:35 +01:00
```
### Environment Variables
- #### PROJECT **REQUIRED**
Name of the project files to output.
Eg. `godot-project` will export to `godot-project.exe`
2019-11-30 05:55:42 +01:00
- #### SUBDIRECTORY
Subdirectory to export project into.
Eg. `project` will export to `$GITHUB_WORKSPACE/build/windows/project/godot-project.exe`
- #### PACKAGE
Boolean value on whether or not to zip game files. Packages will be placed in the `$GITHUB_WORKSPACE/package` directory.
Default Value: `false`
2019-11-30 00:32:35 +01:00
## Credits
This action uses the [godot-ci](https://github.com/aBARICHELLO/godot-ci) docker image from [BARICHELLO](https://github.com/aBARICHELLO)