Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Update forcebuild.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: DJL - Jack <[email protected]>
  • Loading branch information
JackatDJL authored Oct 17, 2023
1 parent cb60b25 commit 76c7baf
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/forcebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
fail-fast: false
steps:
- name: Checkout code ✅
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Create LFS file list 📝
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id

- name: Restore LFS cache 📦
uses: actions/cache@v2
uses: actions/cache@v3
id: lfs-cache
with:
path: .git/lfs
Expand All @@ -33,7 +33,7 @@ jobs:
git reset --hard
- name: Restore Library cache 📦
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: Library
key: Library-build-WebGL
Expand All @@ -42,13 +42,13 @@ jobs:
Library-
- name: Build for WebGL 🖥️
uses: game-ci/unity-builder@v2
uses: game-ci/unity-builder@v3.1.0
with:
targetPlatform: WebGL
projectPath: ${{ vars.projectPath }}

- name: Upload Artifact 📦
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: build-WebGL
path: build/WebGL
Expand All @@ -60,13 +60,13 @@ jobs:
fail-fast: false
steps:
- name: Checkout code ✅
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Create LFS file list 📝
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id

- name: Restore LFS cache 📦
uses: actions/cache@v2
uses: actions/cache@v3
id: lfs-cache
with:
path: .git/lfs
Expand All @@ -79,7 +79,7 @@ jobs:
git reset --hard
- name: Restore Library cache 📦
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: Library
key: Library-build-StandaloneWindows64
Expand All @@ -88,27 +88,34 @@ jobs:
Library-
- name: Build for Windows 🖥️
uses: game-ci/unity-builder@v2
uses: game-ci/unity-builder@v3.1.0
with:
targetPlatform: StandaloneWindows64
projectPath: ${{ vars.projectPath }}

- name: Upload Artifact 📦
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: build-StandaloneWindows64
path: build/StandaloneWindows64


deployPages:
needs: buildWGL
name: Deploy to Github Pages 🚀
runs-on: ubuntu-latest
steps:
- name: Checkout code ✅
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Download Artifact 📦
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3.0.2
with:
name: build-WebGL
path: docs/WebGL
path: build/WebGL

- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: main
folder: docs/WebGL

0 comments on commit 76c7baf

Please sign in to comment.