Skip to content

Deploy to GitHub Pages #5

Deploy to GitHub Pages

Deploy to GitHub Pages #5

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
- name: Build WasmJs
run: ./gradlew :sample:demo:wasmJsBrowserDistribution --no-configuration-cache
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: sample/demo/build/dist/wasmJs/productionExecutable
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4