Skip to content

Commit

Permalink
Merge pull request #1 from arkivanov/deploy-web
Browse files Browse the repository at this point in the history
Deploy browser app
  • Loading branch information
arkivanov authored Feb 4, 2024
2 parents e77d178 + 6bda350 commit 520cdf1
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 683 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build and Publish
on:
pull_request:
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 build
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Publish
on:
push:
branches:
- master
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

- name: Deploy browser app
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 520cdf1

Please sign in to comment.