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