Skip to content

Commit

Permalink
Setup CI and deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
arkivanov committed Feb 4, 2024
1 parent f16feeb commit 6bda350
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Build and Publish
on:
push:
branches:
- master
pull_request:
permissions:
contents: write
jobs:
build:
name: Build
Expand All @@ -21,13 +16,4 @@ jobs:
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
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

0 comments on commit 6bda350

Please sign in to comment.