Skip to content

Merge pull request #15 from OudomMunint/Feature #32

Merge pull request #15 from OudomMunint/Feature

Merge pull request #15 from OudomMunint/Feature #32

Workflow file for this run

name: CI Build
on:
push:
branches:
- master
permissions:
contents: write
jobs:
buildForAllSupportedPlatforms:
name: Build for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
targetPlatform:
- StandaloneWindows64
- StandaloneOSX
- WebGL
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/cache@v3
with:
path: Library
key: Library-${{ matrix.targetPlatform }}
restore-keys: Library-
- uses: game-ci/unity-builder@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
customImage: 'unityci/editor:2023.1.9f1-windows-mono-2.0.0'
- uses: actions/upload-artifact@v3
with:
name: Build-${{ matrix.targetPlatform }}
path: build/${{ matrix.targetPlatform }}
- name: Create Release
if: matrix.targetPlatform == 'StandaloneWindows64'
uses: ncipollo/[email protected]
with:
artifacts: "unity-github-actions-build"
tag: v1.2.1.7