From 6b2e311740d94fb1b5a44c00416533eb71170c04 Mon Sep 17 00:00:00 2001 From: Phillip Schichtel Date: Tue, 27 Apr 2021 21:03:20 +0200 Subject: [PATCH] try deploying it to a folder based on the ref name --- .github/workflows/webgl-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/webgl-build.yml b/.github/workflows/webgl-build.yml index ab3a54a..806477c 100644 --- a/.github/workflows/webgl-build.yml +++ b/.github/workflows/webgl-build.yml @@ -22,9 +22,11 @@ jobs: with: name: Build path: build + - name: Set env + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@4.1.1 with: branch: gh-pages # The branch the action should deploy to. folder: build/WebGL/WebGL - target-folder: latest \ No newline at end of file + target-folder: ${{ env.RELEASE_VERSION }} \ No newline at end of file