Skip to content

Commit

Permalink
add jar to demo app release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin-LL committed Mar 7, 2024
1 parent 15d6f73 commit 98f19bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/release-demo-app-apk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
java-version: 21
- name: Build APK
run: ./gradlew assembleDebug --stacktrace
- name: Build Jar
run: ./gradlew packageUberJarForCurrentOS --stacktrace
- name: Get latest release
id: latest_release
uses: pozetroninc/github-action-get-latest-release@master
Expand All @@ -31,3 +33,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.latest_release.outputs.release }} demoApp/composeApp/build/outputs/apk/debug/composeApp-debug.apk#demoApp.apk --clobber
- name: Upload Jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.latest_release.outputs.release }} demoApp/composeApp/build/compose/jars/*.jar#demoApp.jar --clobber
5 changes: 4 additions & 1 deletion demoApp/composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ kotlin {

jvmMain.dependencies {
implementation(compose.desktop.common)
implementation(compose.desktop.currentOs)
implementation(compose.desktop.macos_x64)
implementation(compose.desktop.macos_arm64)
implementation(compose.desktop.windows_x64)
implementation(compose.desktop.linux_x64)
}
}
}
Expand Down

0 comments on commit 98f19bf

Please sign in to comment.