chore: fix build
This commit is contained in:
15
.github/workflows/android.yml
vendored
15
.github/workflows/android.yml
vendored
@@ -2,15 +2,6 @@ name: Build and Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
build_type:
|
||||
description: Build type
|
||||
default: 'release'
|
||||
type: choice
|
||||
options:
|
||||
- release
|
||||
- beta
|
||||
- alpha
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
@@ -18,8 +9,6 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
BUILD_TYPE: ${{ inputs.build_type }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -35,12 +24,12 @@ jobs:
|
||||
run: chmod +x gradlew
|
||||
|
||||
- name: Build APK
|
||||
run: ./gradlew :composeApp:assemble${{ env.BUILD_TYPE }}
|
||||
run: ./gradlew :composeApp:assembleRelease
|
||||
|
||||
- name: Gitea Release
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
files: "composeApp/build/outputs/apk/${{ env.BUILD_TYPE }}/*.apk"
|
||||
files: "composeApp/build/outputs/apk/release/*.apk"
|
||||
server_url: "https://git.reya.su/"
|
||||
repository: "reya/coop-mobile"
|
||||
token: ${{ secrets.GITEA_TOKEN }}
|
||||
@@ -59,6 +59,8 @@ android {
|
||||
namespace = "su.reya.coop"
|
||||
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
||||
|
||||
base.archivesName.set("coop")
|
||||
|
||||
signingConfigs {
|
||||
create("release") {
|
||||
storeFile = localProperties.getProperty("keystore.path")?.let { file(it) }
|
||||
@@ -88,20 +90,6 @@ android {
|
||||
)
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
}
|
||||
create("beta") {
|
||||
initWith(getByName("release"))
|
||||
applicationIdSuffix = ".beta"
|
||||
versionNameSuffix = "-beta"
|
||||
manifestPlaceholders["appName"] = "Coop Beta"
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
}
|
||||
create("alpha") {
|
||||
initWith(getByName("release"))
|
||||
applicationIdSuffix = ".alpha"
|
||||
versionNameSuffix = "-alpha"
|
||||
manifestPlaceholders["appName"] = "Coop Alpha"
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
|
||||
Reference in New Issue
Block a user