chore: 添加 Expo 本地构建 APK 的工作流,更新依赖包版本

This commit is contained in:
2025-08-13 15:17:34 +08:00
parent 312b5e8b28
commit 773b8f26c2
4 changed files with 136 additions and 3 deletions

View File

@@ -0,0 +1,35 @@
name: Expo Local Build APK
on:
push:
branches:
- main
jobs:
build-apk:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install Expo CLI & EAS CLI
run: npm install -g expo-cli eas-cli
- name: Install dependencies
run: npm ci
# 本地打包
- name: EAS Local Build APK
run: eas build -p android --local --output=dist/app.apk
# 上传产物
- name: Upload APK to Release
uses: actions/upload-artifact@v3
with:
name: app-apk
path: dist/app.apk