Skip to content

Commit 7bb5ffd

Browse files
authored
Update main.yml
1 parent f7171d6 commit 7bb5ffd

1 file changed

Lines changed: 27 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# - StandaloneLinux64 # Build a Linux 64-bit standalone.
1919
# - iOS # Build an iOS player.
2020
- Android # Build an Android .apk standalone app.
21-
# - WebGL # WebGL.
21+
- WebGL # WebGL.
2222
steps:
2323
- uses: actions/checkout@v4
2424
with:
@@ -42,4 +42,29 @@ jobs:
4242
- uses: actions/upload-artifact@v3
4343
with:
4444
name: Build-${{ matrix.targetPlatform }}
45-
path: build/${{ matrix.targetPlatform }}
45+
path: Build/${{ matrix.targetPlatform }}
46+
47+
deployToVercel:
48+
name: Deploy to Vercel
49+
runs-on: ubuntu-latest
50+
needs: buildForAllSupportedPlatforms
51+
if: github.event_name == 'push'
52+
steps:
53+
- uses: actions/checkout@v4
54+
with:
55+
fetch-depth: 0
56+
lfs: true
57+
58+
- name: Download WebGL Build Artifact
59+
uses: actions/download-artifact@v3
60+
with:
61+
name: Build-WebGL
62+
path: Build/WebGL
63+
64+
- name: Deploy to Vercel
65+
uses: amondnet/vercel-action@v20
66+
with:
67+
vercel-token: ${{ secrets.VERCEL_TOKEN }}
68+
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
69+
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
70+
working-directory: Build/WebGL

0 commit comments

Comments
 (0)