From e634254552e1c7ec660a86431849a7863e5dfb36 Mon Sep 17 00:00:00 2001 From: cybardev Date: Mon, 1 Apr 2024 12:43:05 -0300 Subject: [PATCH] fix: use simpler deploy step for WebGL --- .github/workflows/build.yml | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ab37d51..910bb38 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,27 +50,10 @@ jobs: name: Build-${{ matrix.targetPlatform }} path: build/${{ matrix.targetPlatform }} - # Deploy WebGL build to GitHub Pages - deploy: - name: Deploy WebGL to GitHub Pages - - # Add a dependency to the build job - needs: build - - # Grant GITHUB_TOKEN the permissions required to make a Pages deployment - permissions: - pages: write # to deploy to Pages - id-token: write # to verify the deployment originates from an appropriate source - - # Deploy to the github-pages environment - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - - runs-on: ubuntu-latest - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + # Deploy (WebGL) + - name: Deploy WebGL build to GitHub Pages + if: ${{ matrix.targetPlatform == 'WebGL' }} + uses: peaceiris/actions-gh-pages@v3 with: - artifact_name: Build-WebGL + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build/${{ matrix.targetPlatform }}