chore: fix ci

This commit is contained in:
2026-05-23 13:04:27 +07:00
parent 25852e08a9
commit 4bcb2518b7

View File

@@ -1,12 +1,16 @@
name: Build and Release name: Build and Release
on: on:
workflow_call: workflow_dispatch:
inputs: inputs:
build_type: build_type:
description: 'Build type (release, beta, alpha)' description: Build type
required: true default: 'release'
type: string type: choice
options:
- release
- beta
- alpha
push: push:
tags: tags:
- "v*" - "v*"
@@ -15,7 +19,7 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
BUILD_TYPE: ${{ github.event.inputs.build_type || 'release' }} BUILD_TYPE: ${{ inputs.build_type }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -31,7 +35,7 @@ jobs:
run: chmod +x gradlew run: chmod +x gradlew
- name: Build APK - name: Build APK
run: ./gradlew :composeApp:assemble${{ inputs.build_type }} run: ./gradlew :composeApp:assemble${{ env.BUILD_TYPE }}
- name: Gitea Release - name: Gitea Release
uses: akkuman/gitea-release-action@v1 uses: akkuman/gitea-release-action@v1