Skip to content

fix projectPath

fix projectPath #29

Workflow file for this run

name: Build Project
on:
push:
branches:
- main
- next
- feat-github_action
jobs:
build:
runs-on: windows-latest
environment: Unity
steps:
# Check
- name: Checkout project
uses: actions/checkout@v4
with:
lfs: true
# Cache
- name: Cache
uses: actions/cache@v3
with:
projectPath: src
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
# Test
- name: Run tests
uses: game-ci/unity-test-runner@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
githubToken: ${{ secrets. GITHUB_TOKEN}}
customImage: 'unityci/editor:windows-2022.3.42f1-base-3.1.0'
projectPath: src
# Build
- name: Build project
uses: game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: StandaloneWindows
customImage: 'unityci/editor:windows-2022.3.42f1-base-3.1.0'
projectPath: src
# Output
- uses: actions/upload-artifact@v3
with:
projectPath: src
name: Build
path: build