Skip to content

#build

#build #25

Workflow file for this run

name: Unity Build on
on:
push:
branches:
- '**'
jobs:
build:
if: contains(github.event.head_commit.message, '#build')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Library
uses: actions/cache@v3
with:
path: Library
key: Library-${{ runner.os }}-${{ hashFiles('**/ProjectSettings/ProjectVersion.txt') }}
restore-keys: |
Library-${{ runner.os }}-
- name: Build Android
uses: game-ci/unity-builder@v4
with:
unityVersion: 2023.2.1f1
targetPlatform: Android
env:
UNITY_USERNAME: ${{ secrets.UNITY_USERNAME }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: AndroidBuild
path: Artifacts