Skip to content

Build web & deploy

Build web & deploy #8

Workflow file for this run

name: Build web & deploy
on:
push:
branches:
- main
paths:
- composeApp/**
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
cache: gradle
- name: Build Web Bundle with Gradle
run: ./gradlew :composeApp:jsBrowserDistribution --stacktrace
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: 'composeApp/build/dist/js/productionExecutable'
deploy-message: 'Deploy from GitHub Actions'
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1