chore: 添加 Expo 本地构建 APK 的工作流,更新依赖包版本
This commit is contained in:
35
.gitea/workflows/expo-build-apk.yaml
Normal file
35
.gitea/workflows/expo-build-apk.yaml
Normal 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
|
||||
Reference in New Issue
Block a user