Files
coop-mobile/.github/workflows/android.yml
2026-05-23 13:04:27 +07:00

46 lines
1.0 KiB
YAML

name: Build and Release
on:
workflow_dispatch:
inputs:
build_type:
description: Build type
default: 'release'
type: choice
options:
- release
- beta
- alpha
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
env:
BUILD_TYPE: ${{ inputs.build_type }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build APK
run: ./gradlew :composeApp:assemble${{ env.BUILD_TYPE }}
- name: Gitea Release
uses: akkuman/gitea-release-action@v1
with:
files: "composeApp/build/outputs/apk/${{ env.BUILD_TYPE }}/*.apk"
server_url: "https://git.reya.su/"
repository: "reya/coop-mobile"
token: ${{ secrets.GITEA_TOKEN }}