Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
localhostov committed Jun 1, 2024
2 parents 0c7def9 + c5ae48f commit 90d64e6
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/publish-demo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish wasmJs demo

on:
push:
branches: [ main ]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy_docs:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v4
with:
lfs: 'true'

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle

- uses: gradle/[email protected]

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build
run: ./gradlew :composeApp:wasmJsBrowserDistribution -DXmx8G

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'composeApp/build/dist/wasmJs/productionExecutable'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 90d64e6

Please sign in to comment.