更新workflow

This commit is contained in:
Kevin
2026-03-22 19:06:37 +08:00
parent f81e5b7c94
commit 80c8844436
2 changed files with 7 additions and 5 deletions

View File

@@ -1,10 +1,12 @@
# 原生 Android 已不再开发;勿在 semver tag 推送时自动构建。
# 如需临时打 APK可在 Actions 里手动运行本 workflow。
name: Android Release Build
on:
push:
tags:
- 'v*.*.*' # SemVer tag如 v1.0.0)时自动触发
workflow_dispatch: # 支持手动触发
# push:
# tags:
# - 'v*.*.*'
workflow_dispatch:
inputs:
version_name:
description: '版本名(如 1.0.1),留空则使用 build.gradle.kts 中的默认值'

View File

@@ -84,7 +84,7 @@ jobs:
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,prefix={{branch}}-
type=sha,prefix=sha-
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image