mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
Add pull requests as trigger for workflow
This commit is contained in:
parent
a017ab7c43
commit
4fc0f7dd2c
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
@ -1,5 +1,7 @@
|
||||
name: Actions 😎
|
||||
on: [push]
|
||||
on:
|
||||
pull_request: {}
|
||||
push: { branches: [master] }
|
||||
|
||||
jobs:
|
||||
buildForWebGL:
|
||||
@ -10,12 +12,17 @@ jobs:
|
||||
- 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_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||
UNITY_PROJECT_PATH: test-project
|
||||
BUILD_NAME: TestBuild
|
||||
BUILD_TARGET: WebGL
|
||||
@ -28,3 +35,8 @@ jobs:
|
||||
with:
|
||||
name: Build
|
||||
path: ${{ steps.buildStep.outputs.allBuildsPath }}
|
||||
|
||||
# Return license
|
||||
- name: Return License
|
||||
uses: webbertakken/unity-return-license@v0.1
|
||||
if: always()
|
||||
|
Loading…
Reference in New Issue
Block a user