fixed paths #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build the project | ||
on: | ||
[push] | ||
jobs: | ||
build: | ||
name: Build and upload the project | ||
runs-on: self-hosted | ||
env: | ||
working-directory: Dust Bunny | ||
steps: | ||
# Checkout | ||
- uses: actions/checkout@v2 | ||
- name: Cache Library | ||
uses: actions/cache@v3 | ||
with: | ||
path: Dust Bunny/Library | ||
key: Library-SpringCleaning-TargetPlatform | ||
restore-keys: | | ||
Library-SpringCleaning- | ||
Library- | ||
# Build | ||
- name: Build | ||
uses: game-ci/unity-builder@v4 | ||
projectPath: Dust Bunny | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
with: | ||
targetPlatform: StandaloneWindows64 | ||
# Upload | ||
- name: Upload build to github | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: WindowsBuild | ||
path: Dust Bunny/build | ||
# Correct ownership of _work directory | ||
- name: Fix _work directory ownership | ||
if: always() | ||
working-directory: ../../.. | ||
run: pwd && sudo chown -R ubuntu _work |