-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.15 KB
/
webgl_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build
on:
# developへのPR作成と更新をトリガーとしてワークフローを開始する
pull_request:
branches:
- develop
types: [opened, synchronize]
# 手動実行デバッグ用
workflow_dispatch: {}
env:
target: Dev_Build
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@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: WebGL
unityVersion: 2019.4.31f1
# Upload artifact (Unity_v2019.4.31f1)
- name: Upload the WebGL Build
uses: actions/upload-artifact@v3
with:
name: Build
path: build
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
# GitHub Pages デプロイ用のブランチ
branch: gh-pages
folder: build