From 5dae5ff638ba47e8f4b5e942ef6657925baef8ec Mon Sep 17 00:00:00 2001 From: Cdm2883 Date: Sun, 21 Jul 2024 16:42:31 +0800 Subject: [PATCH] feat: publish example application with Kotlin/Wasm on GitHub Pages --- .github/workflows/deploy-example-gh-pages.yml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deploy-example-gh-pages.yml diff --git a/.github/workflows/deploy-example-gh-pages.yml b/.github/workflows/deploy-example-gh-pages.yml new file mode 100644 index 0000000..c81d2fa --- /dev/null +++ b/.github/workflows/deploy-example-gh-pages.yml @@ -0,0 +1,31 @@ +name: Publish example application with Kotlin/Wasm on GitHub Pages +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout master + uses: actions/checkout@v4 + + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: 11 + distribution: temurin + + - name: Grant execute permission for gradlew + run: chmod +x ./gradlew + + - name: Build with Kotlin/Wasm + run: ./gradlew :example:wasmJsBrowserDistribution + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./example/build/dist/wasmJs/productionExecutable