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 😎
|
name: Actions 😎
|
||||||
on: [push]
|
on:
|
||||||
|
pull_request: {}
|
||||||
|
push: { branches: [master] }
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
buildForWebGL:
|
buildForWebGL:
|
||||||
@ -10,12 +12,17 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
# Activate license
|
||||||
|
- name: Activate license
|
||||||
|
uses: webbertakken/unity-activate@v1
|
||||||
|
env:
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
|
||||||
# Configure builder
|
# Configure builder
|
||||||
- name: Build project
|
- name: Build project
|
||||||
id: buildStep
|
id: buildStep
|
||||||
uses: ./
|
uses: ./
|
||||||
env:
|
env:
|
||||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
||||||
UNITY_PROJECT_PATH: test-project
|
UNITY_PROJECT_PATH: test-project
|
||||||
BUILD_NAME: TestBuild
|
BUILD_NAME: TestBuild
|
||||||
BUILD_TARGET: WebGL
|
BUILD_TARGET: WebGL
|
||||||
@ -28,3 +35,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: Build
|
name: Build
|
||||||
path: ${{ steps.buildStep.outputs.allBuildsPath }}
|
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