Update webgl_build.yml #5
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 | |
on: | |
# developへのPR作成をトリガーとしてワークフローを開始する | |
pull_request: | |
branches: | |
- develop | |
types: [opened, synchronize] | |
# 手動実行デバッグ用 | |
workflow_dispatch: {} | |
jobs: | |
build: | |
name: Build my project | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# Build | |
- name: Build project | |
uses: game-ci/unity-builder@v2 | |
env: | |
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
with: | |
targetPlatform: WebGL | |
unityVersion: 2019.4.31f1 | |
# Upload artifact (Unity_v2019.4.31f1) | |
- name: Upload the WebGL Build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Build | |
path: build |