From 76c7baf1f6684d48c7c1dd77386a2adc6bd9fd23 Mon Sep 17 00:00:00 2001 From: DJL - Jack <71508487+derjacklive@users.noreply.github.com> Date: Tue, 17 Oct 2023 20:04:17 +0200 Subject: [PATCH] Update forcebuild.yaml Signed-off-by: DJL - Jack <71508487+derjacklive@users.noreply.github.com> --- .github/workflows/forcebuild.yaml | 33 +++++++++++++++++++------------ 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/.github/workflows/forcebuild.yaml b/.github/workflows/forcebuild.yaml index bc2a1128..d09c48db 100644 --- a/.github/workflows/forcebuild.yaml +++ b/.github/workflows/forcebuild.yaml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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/github-pages-deploy-action@4.1.4 + with: + branch: main + folder: docs/WebGL