Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce0203 committed Aug 19, 2023
1 parent 3206ea9 commit f62b763
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,26 @@ jobs:

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Buid
- name: Build
run: |
./gradlew :client:jsBrowserProductionWebpack
- name: server.zip
run: ./gradlew :server:distZip

- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Build apk
run: ./gradlew :client:installAndroidRelease
- name: rename .apk
run: cd client/build/outputs/apk/release && mv client-release.apk client.apk

- name: release
uses: marvinpinto/action-automatic-releases@latest
with:
title: "Build #${{github.run_number}}"
automatic_release_tag: "${{github.run_number}}"
repo_token: "${{ secrets.GITHUB_TOKEN }}"
files: server/build/distributions/server.zip
files: server/build/distributions/server.zip client/build/outputs/apk/release/client.apk
prerelease: false
- shell: bash
run: |
Expand Down
8 changes: 0 additions & 8 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,9 @@ import korlibs.korge.gradle.Orientation
import korlibs.korge.gradle.korge
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType

apply<KorgeGradlePlugin>()
apply(plugin = "org.jetbrains.kotlin.plugin.serialization")
plugins {
kotlin("multiplatform")
id("com.android.application")
}

korge {
targetJvm()
targetJs()
targetAndroid()
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
Expand Down

0 comments on commit f62b763

Please sign in to comment.