2020-02-01 06:09:17 +01:00
|
|
|
![Release Version](https://img.shields.io/github/v/release/josephbmanley/build-godot-action) ![Test Action](https://github.com/josephbmanley/build-godot-action/workflows/Test%20Action/badge.svg)
|
2020-02-01 06:05:56 +01:00
|
|
|
|
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-12-28 22:56:53 +01:00
|
|
|
This action will create a `build` folder an outputed build. You must have the export preset configured for the target platform to successfully export.
|
2019-11-30 00:34:21 +01:00
|
|
|
|
2019-11-30 00:32:35 +01:00
|
|
|
Example:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
steps:
|
2019-12-28 22:56:53 +01:00
|
|
|
- uses: josephbmanley/build-godot-action@[VERSION]
|
|
|
|
with:
|
|
|
|
name: godot-project
|
|
|
|
preset: HTML5
|
2019-11-30 00:32:35 +01:00
|
|
|
```
|
|
|
|
|
2019-12-28 22:56:53 +01:00
|
|
|
### Inputs
|
2019-11-30 00:32:35 +01:00
|
|
|
|
2019-12-28 22:56:53 +01:00
|
|
|
#### name **required**
|
2019-11-30 00:32:35 +01:00
|
|
|
|
2019-12-28 22:56:53 +01:00
|
|
|
The name of the exported package/binary
|
2019-11-30 00:32:35 +01:00
|
|
|
|
2019-12-28 22:56:53 +01:00
|
|
|
#### preset **required**
|
2019-11-30 00:32:35 +01:00
|
|
|
|
2019-12-28 22:56:53 +01:00
|
|
|
The name of the preset found in `export_presets.cfg` you would like to build.
|
2019-11-30 05:55:42 +01:00
|
|
|
|
2019-12-28 22:56:53 +01:00
|
|
|
#### subdirectory
|
2019-11-30 05:55:42 +01:00
|
|
|
|
2019-12-28 22:56:53 +01:00
|
|
|
*Optional*
|
2019-11-30 05:55:42 +01:00
|
|
|
|
2019-12-28 22:56:53 +01:00
|
|
|
The subdirectory in the `build` folder to output build to, can be useful for self packaging.
|
2019-11-30 22:44:28 +01:00
|
|
|
|
2019-12-28 22:56:53 +01:00
|
|
|
#### package
|
|
|
|
|
|
|
|
*Optional*
|
|
|
|
|
|
|
|
Boolean value, when set to true, builds artficat zip file.
|
|
|
|
|
2020-05-04 04:03:30 +02:00
|
|
|
#### projectDir
|
|
|
|
|
|
|
|
*Optional*
|
|
|
|
|
|
|
|
Directory in workspace containing your godot project.
|
|
|
|
|
2020-03-16 23:28:33 +01:00
|
|
|
#### debugMode
|
|
|
|
|
|
|
|
*Optional*
|
|
|
|
|
|
|
|
Boolean value, when set to true, runs export in debug mode.
|
|
|
|
|
2019-12-28 22:56:53 +01:00
|
|
|
### Outputs
|
|
|
|
|
|
|
|
#### build
|
|
|
|
|
2020-05-04 04:03:30 +02:00
|
|
|
The location the outputed build is placed relative to GitHub Workspace.
|
2019-12-28 22:56:53 +01:00
|
|
|
|
|
|
|
#### artifact
|
|
|
|
|
2020-05-04 04:03:30 +02:00
|
|
|
The location the outputed artifact is placed relative to GitHub Workspace.
|
2019-11-30 22:44:28 +01:00
|
|
|
|
|
|
|
|
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)
|