Skip to content

edit: version ci for setup 2 to 3 #build #12

edit: version ci for setup 2 to 3 #build

edit: version ci for setup 2 to 3 #build #12

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: Setup Unity
uses: game-ci/unity-setup@v3
with:
unityVersion: 2022.3.21f1
username: '${{ secrets.UNITY_USERNAME }}'
password: '${{ secrets.UNITY_PASSWORD }}'
- name: Build Android
uses: game-ci/unity-builder@v3
with:
unityVersion: 2022.3.21f1
targetPlatform: Android
buildPath: Artifacts/Android
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: AndroidBuild
path: Artifacts