瀏覽代碼

Add APK build to Github Action

Alex Tran 3 年之前
父節點
當前提交
db366aac08
共有 2 個文件被更改,包括 34 次插入6 次删除
  1. 32 0
      .github/workflows/build_apk.yml
  2. 2 6
      mobile/ios/fastlane/report.xml

+ 32 - 0
.github/workflows/build_apk.yml

@@ -0,0 +1,32 @@
+name: Build APK Android
+
+on:
+  workflow_dispatch:
+  push:
+    branches: [main]
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    defaults:
+      run:
+        working-directory: ./mobile
+    steps:
+      - uses: actions/checkout@v2
+
+      # Build
+      - uses: subosito/flutter-action@v2
+        with:
+          channel: "stable"
+          cache: true
+          cache-key: flutter2.10 # optional, change this to force refresh cache
+      - run: flutter --version
+      - run: flutter pub get
+      - run: flutter build apk
+      - run: flutter build appbundle
+
+      # Upload Artifact
+      - uses: actions/upload-artifact@v2
+        with:
+          name: release-apk
+          path: mobile/build/app/outputs/apk/release/app-release.apk

File diff suppressed because it is too large
+ 2 - 6
mobile/ios/fastlane/report.xml


Some files were not shown because too many files changed in this diff