Skip to content

Commit

Permalink
feat: publish example application with Kotlin/Wasm on GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdm2883 committed Jul 21, 2024
1 parent dd19cd6 commit 5dae5ff
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy-example-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5dae5ff

Please sign in to comment.