Skip to content

Setup deploy web app for KMP lib wizard #43

Setup deploy web app for KMP lib wizard

Setup deploy web app for KMP lib wizard #43

Workflow file for this run

name: Test -> Production Build -> Deploy
on:
push:
branches:
- master
jobs:
test-and-build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Test
run: |
./gradlew check
- name: Upload Reports
uses: actions/upload-artifact@v4
with:
name: Test-Reports
path: build/reports
if: always()
- name: Build
run: |
./gradlew jsBrowserDistribution -PwizardType=kmp
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build/dist/js/productionExecutable