Update readme, prepare for v0.2

This commit is contained in:
Webber 2019-12-08 00:59:14 +01:00 committed by Webber Takken
parent 23f2c2c0fa
commit 75fc07ef3c

View File

@ -42,16 +42,18 @@ jobs:
steps: steps:
``` ```
Activate Unity in a step using the
[Unity Activate](https://github.com/marketplace/actions/unity-activate)
action.
Configure the builder as follows: Configure the builder as follows:
```yaml ```yaml
# Configure builder # Configure builder
- name: Build project - name: Build project
id: buildStep id: buildStep
uses: webbertakken/unity-builder@v0.1 # WIP (only webgl for now) uses: webbertakken/unity-builder@v0.2 # WIP (only webgl for now)
env: env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
# Optional: Path to your project, leave blank for "./" # Optional: Path to your project, leave blank for "./"
UNITY_PROJECT_PATH: path/to/your/project UNITY_PROJECT_PATH: path/to/your/project
@ -64,10 +66,13 @@ Configure the builder as follows:
# Target platform for your build # Target platform for your build
BUILD_TARGET: WebGL BUILD_TARGET: WebGL
# Optional: <StaticBuildClass.StaticMethod>, defaults to Builder.BuildProject # Optional: <StaticBuildClass.StaticMethod>
BUILD_COMMAND: "" BUILD_COMMAND: ""
``` ```
> _**Note:** By default the enabled scenes from the
project's settings will be built._
You use the id to **upload your built files** like so: You use the id to **upload your built files** like so:
```yaml ```yaml
@ -79,6 +84,10 @@ You use the id to **upload your built files** like so:
path: ${{ steps.buildStep.outputs.allBuildsPath }} path: ${{ steps.buildStep.outputs.allBuildsPath }}
``` ```
Return the Unity license in a final step using the
[Unity Return License](https://github.com/marketplace/actions/unity-return-license)
action.
Commit and push your workflow definition. Commit and push your workflow definition.
## More actions ## More actions