Skip to content

Commit 906668f

Browse files
author
CI Bot
committed
ci: add automatic release to GitHub Releases
1 parent 7635c5e commit 906668f

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/build_android.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,35 @@ jobs:
5252
with:
5353
name: api-debug-helper-release-unsigned
5454
path: app/build/outputs/apk/release/app-release-unsigned.apk
55+
56+
- name: Create Release
57+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
58+
uses: softprops/action-gh-release@v2
59+
with:
60+
tag_name: latest
61+
name: API Debug Helper - Latest Build
62+
body: |
63+
调试助手 APK 自动构建版本
64+
65+
**用途**: 测试 Google AI Edge Gallery 本地 API 服务
66+
**目标项目**: https://github.com/bugroom/google-ai-edge-gallery-local-api
67+
**构建时间**: ${{ github.event.head_commit.timestamp }}
68+
69+
### 功能特性
70+
- 测试 /health 健康检查
71+
- 获取 /v1/models 模型列表
72+
- 发送 /v1/chat/completions 聊天请求
73+
- 支持流式和非流式响应
74+
- 应用内日志查看
75+
76+
### 安装
77+
1. 下载 `app-release-unsigned.apk`
78+
2. 在 Android 设备上安装
79+
3. 配置 Gallery API 服务地址即可测试
80+
files: |
81+
app/build/outputs/apk/release/app-release-unsigned.apk
82+
draft: false
83+
prerelease: true
84+
make_latest: true
85+
env:
86+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)