Skip to content

Commit 7b2c24a

Browse files
authored
Merge pull request #306 from immutable/feature/sdk-3344-deploy-webgl
[SDK-334] deploy webgl
2 parents c746c19 + a622da4 commit 7b2c24a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/test-build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
test:
1515
if: github.event.pull_request.head.repo.fork == false
1616
name: Test sample game 🧪
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-latest-8-cores
1818

1919
steps:
2020
- uses: actions/checkout@v3
@@ -45,6 +45,7 @@ jobs:
4545
name: Coverage results
4646
path: ${{ steps.passportTest.outputs.coveragePath }}
4747
build:
48+
needs: test
4849
name: Build for ${{ matrix.targetPlatform }}
4950
runs-on: ubuntu-latest-8-cores
5051
strategy:
@@ -78,6 +79,12 @@ jobs:
7879
unityVersion: 2021.3.26f1
7980
targetPlatform: ${{ matrix.targetPlatform }}
8081
projectPath: './src/Packages/Passport/Samples~/sample'
82+
- name: Deploy to GitHub Pages
83+
uses: JamesIves/[email protected]
84+
if: matrix.targetPlatform == 'WebGL'
85+
with:
86+
branch: gh-pages
87+
folder: build/WebGL/WebGL
8188
- uses: actions/upload-artifact@v3
8289
if: always()
8390
with:

.github/workflows/test.yml

Whitespace-only changes.

WebGL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This guide provides focused instructions for implementing the Unity-Immutable-SD
55
For general information on the SDK, please refer to
66
the [Immutable Unity SDK documentation](https://docs.immutable.com/sdks/zkEVM/unity).
77

8-
Live example can be found at https://immutable.github.io/unity-immutable-sdk/sample/webgl
8+
Live example can be found at https://immutable.github.io/unity-immutable-sdk
99

1010
## WebGL Template Setup
1111

0 commit comments

Comments
 (0)