Skip to content

Update workflow

Update workflow #3

Workflow file for this run

name: Build Project
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

Check failure on line 18 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
- name: Set up Unity
uses: game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: Android
- name: Build Unity project
run: |
unity -quit -batchmode -projectPath ./YourProjectPath -executeMethod BuildScript.PerformBuild
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: build
path: ./YourProjectPath/Builds/