Release Build #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: Release Build | |
on: | |
workflow_dispatch: {} | |
jobs: | |
build: | |
name: Release Build my project | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
# Cache | |
- uses: actions/cache@v3 | |
with: | |
path: Library | |
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} | |
restore-keys: | | |
Library- | |
# Release Build | |
- name: Release Build project | |
uses: game-ci/unity-builder@v3 | |
env: | |
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
with: | |
targetPlatform: WebGL | |
unityVersion: 2022.3.12f1 | |
# ReleaseBuildForCICDのメソッド呼び出し | |
buildMethod: ProjectBuilder.ReleaseBuildForCICD | |
# Output | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Build | |
path: Build |