From 7394eee0f091070c9f3117422ef456cdf7a90657 Mon Sep 17 00:00:00 2001 From: eventlOwOp <3064273390@qq.com> Date: Thu, 6 Jun 2024 13:07:58 +0800 Subject: [PATCH] add flutter build --- .github/workflows/build-app.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build-app.yml diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml new file mode 100644 index 0000000..97a91a0 --- /dev/null +++ b/.github/workflows/build-app.yml @@ -0,0 +1,31 @@ +name: build app + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - name: Checkout zerotier-magisk + uses: actions/checkout@v4 + + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + + - name: build target apk + run: | + cd app + flutter pub get + flutter build apk + + - id: commit + uses: prompt/actions-commit-hash@v3 + + - name: Upload AArch64 + uses: actions/upload-artifact@v4 + with: + name: app-${{ steps.commit.outputs.short }} + path: app/build/app/outputs/flutter-apk/app-release.apk