Skip to content

Update project

Update project #12

Workflow file for this run

name: Publish Application on GitHub Pages
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
build-web:
name: Build Kotlin/Wasm
runs-on: ubuntu-latest
steps:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '11'
- name: Checkout code
uses: actions/checkout@v4
- name: Run Gradle Tasks
run: ./gradlew :webApp:jsBrowserDistribution
- name: Fix permissions
run: chmod -R 0755 "webApp/build/dist/js/productionExecutable/"
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: webApp/build/dist/js/productionExecutable/
deploy:
needs: build-web
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4