-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (62 loc) · 2.41 KB
/
release.yml
File metadata and controls
74 lines (62 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Create Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Update Version from Tag
run: |
VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//')
echo "Version = $VERSION"
sed -i "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" package.json
- name: Build MCP Server
run: |
npm ci
npx tsc
- name: Prepare release directory
run: |
mkdir -p release/pkg
# Copy necessary files for runtime
cp -r dist release/pkg/
cp package.json release/pkg/
cp package-lock.json release/pkg/
# Include documentation
cp README.md release/pkg/ 2>/dev/null || touch release/pkg/README.md
- name: Create release assets
run: |
cd release/pkg
zip -r ../adb-mcp-server-v${{ github.ref_name }}.zip .
tar -czf ../adb-mcp-server-v${{ github.ref_name }}.tar.gz .
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
release/adb-mcp-server-v${{ github.ref_name }}.zip
release/adb-mcp-server-v${{ github.ref_name }}.tar.gz
body: |
## ADB MCP Server ${{ github.ref_name }} (Super-Evolving 3.0)
### Tính năng nổi bật:
- **Semantic UI Mapping**: Tự động nhận diện nút bấm qua ID/Text, không lo app đổi giao diện.
- **SQLite Knowledge Base**: Lưu trữ tri thức quy mô lớn, truy vấn cực nhanh.
- **Auto-Recovery**: Tự động tìm lại tọa độ khi nút bấm bị di chuyển.
- **Batch Execution**: Gửi nhiều lệnh ADB cùng lúc để giảm độ trễ.
### Hướng dẫn cài đặt:
1. Tải bản phát hành phù hợp với hệ điều hành của bạn.
2. Giải nén và chạy `npm install --production`.
3. Khởi động server: `node dist/index.js`.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}