Skip to content

Commit

Permalink
Publish sample to Github Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechOsak committed Jun 3, 2024
1 parent 986cb1e commit 33e40bb
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish Web
on:
workflow_dispatch:
inputs:
versionName:
description: ''
required: true

jobs:
publish:
name: Publish Web
runs-on: macos-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'

- name: Grant Permission to Execute Gradle
run: chmod +x gradlew

- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: sample:composeApp:build
- name: Build sample JS - Main
run: ./gradlew :sample:composeApp:jsBrowserDistribution

- name: Upload your page as github pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: sample/composeApp/build/dist/js/productionExecutable/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 33e40bb

Please sign in to comment.