mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
Test the action
This commit is contained in:
parent
2d6639c0cc
commit
4a8095a6fb
30
.github/workflows/main.yml
vendored
Normal file
30
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
name: Actions 😎
|
||||
on: [push]
|
||||
|
||||
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
|
||||
|
||||
# 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
|
||||
BUILDS_PATH: builds
|
||||
BUILD_COMMAND: ""
|
||||
|
||||
# Upload distributables
|
||||
- name: Upload Build
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: Build
|
||||
path: ${{ steps.buildStep.outputs.allBuildsPath }}
|
@ -64,9 +64,9 @@ CURRENT_BUILD_FULL_PATH=$BUILDS_FULL_PATH/$BUILD_TARGET
|
||||
#
|
||||
|
||||
if [ -z "$BUILD_COMMAND" ]; then
|
||||
EXECUTE_CUSTOM_METHOD="-executeMethod $BUILD_COMMAND"
|
||||
else
|
||||
EXECUTE_CUSTOM_METHOD=""
|
||||
else
|
||||
EXECUTE_CUSTOM_METHOD="-executeMethod $BUILD_COMMAND"
|
||||
fi
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user