Skip to content

Commit

Permalink
Deploy browser app
Browse files Browse the repository at this point in the history
  • Loading branch information
arkivanov committed Feb 4, 2024
1 parent e77d178 commit f16feeb
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 683 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Publish
on:
push:
branches:
- master
pull_request:
permissions:
contents: write
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- name: Build
run: ./gradlew wasmJsBrowserDistribution
# run: ./gradlew build

- name: Deploy browser app
# if: github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
branch: gh-pages
folder: composeApp/build/dist/wasmJs/productionExecutable
clean: true
2 changes: 2 additions & 0 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ kotlin {
commonWebpackConfig {
outputFileName = "composeApp.js"
}

testTask { enabled = false }
}
}

Expand Down
Loading

0 comments on commit f16feeb

Please sign in to comment.