Skip to content

Commit 6b2e311

Browse files
committed
try deploying it to a folder based on the ref name
1 parent c41f6e5 commit 6b2e311

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/webgl-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ jobs:
2222
with:
2323
name: Build
2424
path: build
25+
- name: Set env
26+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
2527
- name: Deploy 🚀
2628
uses: JamesIves/github-pages-deploy-action@4.1.1
2729
with:
2830
branch: gh-pages # The branch the action should deploy to.
2931
folder: build/WebGL/WebGL
30-
target-folder: latest
32+
target-folder: ${{ env.RELEASE_VERSION }}

0 commit comments

Comments
 (0)