Skip to content

Commit

Permalink
fix: use simpler deploy step for WebGL
Browse files Browse the repository at this point in the history
  • Loading branch information
cybardev committed Apr 1, 2024
1 parent 1028d18 commit e634254
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit e634254

Please sign in to comment.