36 lines
746 B
YAML
36 lines
746 B
YAML
name: Expo Local Build APK
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
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 |