Skip to content

実験のためCIのビルドバージョンを変更 #34

実験のためCIのビルドバージョンを変更

実験のためCIのビルドバージョンを変更 #34

Workflow file for this run

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
# Compression FormatをGzipからDisabledに書き換え
- name: Set CompressionFormat to Disabled
run: |
sed -i -e 's/webGLCompressionFormat: ./webGLCompressionFormat: 2/' ProjectSettings/ProjectSettings.asset
# 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: 2022.3.6f1
allowDirtyBuild: true
# Upload artifact
- 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