Test the action

This commit is contained in:
Webber 2019-11-30 20:45:14 +01:00 committed by Webber Takken
parent 2d6639c0cc
commit 4a8095a6fb
2 changed files with 32 additions and 2 deletions

30
.github/workflows/main.yml vendored Normal file
View 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 }}

View File

@ -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
#