unity-builder/.github/workflows/main.yml
2019-12-08 02:02:32 +01:00

43 lines
1.0 KiB
YAML

name: Actions 😎
on:
pull_request: {}
push: { branches: [master] }
jobs:
buildForWebGL:
name: Build for WebGL 🕸
runs-on: ubuntu-latest
steps:
# Checkout repository (required to test local actions)
- name: Checkout repository
uses: actions/checkout@v1
# Activate license
- name: Activate license
uses: webbertakken/unity-activate@v1
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
# Configure builder
- name: Build project
id: buildStep
uses: ./
env:
UNITY_PROJECT_PATH: test-project
BUILD_NAME: TestBuild
BUILD_TARGET: WebGL
BUILDS_PATH: builds
BUILD_COMMAND: ""
# Upload distributables
- name: Upload Build
uses: actions/upload-artifact@v1
with:
name: Build
path: ${{ steps.buildStep.outputs.allBuildsPath }}
# Return license
- name: Return License
uses: webbertakken/unity-return-license@v1
if: always()