Skip to content

Commit

Permalink
ci config to publish web version to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Fethi Tewelde committed Jun 5, 2024
1 parent e816a14 commit 0cf6711
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy Compose Web App

on:
push:
branches: [main, publish_to_github_pages]

permissions:
contents: write

jobs:
test-and-build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]

- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}

- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Build
run: |
./gradlew wasmJsBrowserDistribution --no-configuration-cache
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: composeApp/build/dist/wasmJs/productionExecutable

0 comments on commit 0cf6711

Please sign in to comment.