Skip to content

Commit f87d18c

Browse files
committed
fix github action
1 parent 13550bc commit f87d18c

3 files changed

Lines changed: 36 additions & 15 deletions

File tree

.github/workflows/main.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,47 +39,47 @@ jobs:
3939
run: |
4040
echo -n "${{ secrets.ANDROID_KEYSTORE }}" | base64 -d > $RUNNER_TEMP/key.jks
4141
- name: Build APK
42-
run: ./gradlew composeApp:assembleRelease
42+
run: ./gradlew androidApp:assembleRelease
4343
- name: Build Deb
44-
run: ./gradlew composeApp:packageDeb
44+
run: ./gradlew desktopApp:packageDeb
4545
- name: Build WASM
46-
run: ./gradlew composeApp:wasmJsBrowserDistribution
46+
run: ./gradlew webApp:wasmJsBrowserDistribution
4747
- name: Build JS
48-
run: ./gradlew composeApp:jsBrowserDistribution
48+
run: ./gradlew webApp:jsBrowserDistribution
4949
- name: Generate release assets
5050
if: ${{ startsWith(github.ref, 'refs/tags/') }}
5151
env:
5252
VERSION: ${{ github.ref_name }}
5353
run: |
5454
JS_ZIP="com.shreyashkore.wonderouscompose_$VERSION-JS.zip"
5555
WASM_ZIP="com.shreyashkore.wonderouscompose_$VERSION-WASM.zip"
56-
(cd ./composeApp/build/dist && zip -r $JS_ZIP js)
57-
(cd ./composeApp/build/dist && zip -r $WASM_ZIP wasmJs)
56+
(cd ./webApp/build/dist && zip -r $JS_ZIP js)
57+
(cd ./webApp/build/dist && zip -r $WASM_ZIP wasmJs)
5858
- name: Release
5959
if: ${{ startsWith(github.ref, 'refs/tags/') }}
6060
uses: softprops/action-gh-release@v2.0.8
6161
with:
6262
token: ${{ secrets.TOKEN }}
6363
files: |
64-
./composeApp/build/outputs/apk/release/composeApp-release.apk
65-
./composeApp/build/compose/binaries/main/deb/*.deb
66-
./composeApp/build/dist/*.zip
64+
./androidApp/build/outputs/apk/release/androidApp-release.apk
65+
./desktopApp/build/compose/binaries/main/deb/*.deb
66+
./webApp/build/dist/*.zip
6767
6868
- name: Deploy Wasm
6969
if: ${{ github.event_name == 'release' }}
7070
uses: JamesIves/github-pages-deploy-action@4.1.5
7171
with:
7272
token: ${{ secrets.TOKEN }}
7373
branch: main
74-
folder: composeApp/build/dist/wasmJs/productionExecutable
74+
folder: webApp/build/dist/wasmJs/productionExecutable
7575
repository-name: ShreyashKore/wonderous-compose-wasm
7676
- name: Deploy JS
7777
if: ${{ github.event_name == 'release' }}
7878
uses: JamesIves/github-pages-deploy-action@4.1.5
7979
with:
8080
token: ${{ secrets.TOKEN }}
8181
branch: main
82-
folder: composeApp/build/dist/js/productionExecutable
82+
folder: webApp/build/dist/js/productionExecutable
8383
repository-name: ShreyashKore/wonderous-compose-js
8484

8585
build_windows:
@@ -103,14 +103,14 @@ jobs:
103103
run: echo "sdk.dir=some_location" > ./local.properties
104104
- name: Build MSI
105105
run: |
106-
./gradlew composeApp:packageMsi
106+
./gradlew desktopApp:packageMsi
107107
- name: Upload Release Asset
108108
if: ${{ startsWith(github.ref, 'refs/tags/') }}
109109
uses: softprops/action-gh-release@v2.0.8
110110
with:
111111
token: ${{ secrets.TOKEN }}
112112
files: |
113-
./composeApp/build/compose/binaries/main/msi/*.msi
113+
./desktopApp/build/compose/binaries/main/msi/*.msi
114114
115115
# build_ios:
116116
# runs-on: macos-latest

androidApp/build.gradle.kts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
import java.util.Properties
23

34
plugins {
45
alias(libs.plugins.androidApplication)
@@ -7,6 +8,13 @@ plugins {
78
alias(libs.plugins.androidMapsSecrets)
89
}
910

11+
val keystorePropertiesFile = rootProject.file("key.properties")
12+
val keystoreProperties = Properties().apply {
13+
if (keystorePropertiesFile.exists()) {
14+
load(keystorePropertiesFile.inputStream())
15+
}
16+
}
17+
1018
kotlin {
1119
compilerOptions {
1220
jvmTarget = JvmTarget.JVM_11
@@ -38,9 +46,22 @@ android {
3846
excludes += "/META-INF/{AL2.0,LGPL2.1}"
3947
}
4048
}
49+
signingConfigs {
50+
if (keystorePropertiesFile.exists()) {
51+
create("release") {
52+
storeFile = file(keystoreProperties.getProperty("path"))
53+
storePassword = keystoreProperties.getProperty("storePassword")
54+
keyAlias = keystoreProperties.getProperty("alias")
55+
keyPassword = keystoreProperties.getProperty("keyPassword")
56+
}
57+
}
58+
}
4159
buildTypes {
4260
getByName("release") {
4361
isMinifyEnabled = false
62+
if (keystorePropertiesFile.exists()) {
63+
signingConfig = signingConfigs.getByName("release")
64+
}
4465
}
4566
}
4667
compileOptions {

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
## Project Version
3-
versionCode = "105"
4-
versionName = "1.0.5"
3+
versionCode = "110"
4+
versionName = "1.1.0"
55

66
## Frameworks and Libraries
77
agp = "9.0.1"

0 commit comments

Comments
 (0)