浏览代码

feat(build): Include apk in prepare-release flow (#1496)

bo0tzz 2 年之前
父节点
当前提交
6a852332de
共有 2 个文件被更改,包括 11 次插入0 次删除
  1. 1 0
      .github/workflows/build-mobile.yml
  2. 10 0
      .github/workflows/prepare-release.yml

+ 1 - 0
.github/workflows/build-mobile.yml

@@ -2,6 +2,7 @@ name: Build Mobile
 
 on:
   workflow_dispatch:
+  workflow_call:
   pull_request:
   push:
     branches: [main]

+ 10 - 0
.github/workflows/prepare-release.yml

@@ -18,8 +18,12 @@ on:
         type: boolean
 
 jobs:
+  build_mobile:
+    uses: ./.github/workflows/build-mobile.yml
+
   tag_release:
     runs-on: ubuntu-latest
+    needs: build_mobile
     
     steps:
       - name: Checkout
@@ -38,6 +42,11 @@ jobs:
           message: "Version ${{ env.IMMICH_VERSION }}"
           tag: ${{ env.IMMICH_VERSION }}
           push: true
+
+      - name: Download APK
+        uses: actions/download-artifact@v3
+        with:
+          name: release-apk-signed
           
       - name: Create draft release
         uses: softprops/action-gh-release@v1
@@ -49,3 +58,4 @@ jobs:
           files: |
             docker/docker-compose.yml
             docker/example.env
+            *.apk