-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (30 loc) · 1002 Bytes
/
deploy.yml
File metadata and controls
32 lines (30 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: 🔨 Build App
on:
workflow_call:
jobs:
build:
name: Build Artifacts and Release
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v3
- name: ⚙️ Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.0.0"
channel: "stable"
cache: true
- name: ⚙️ Install dependencies for all packages
run: |
flutter pub get
- name: 🔨 Build APK
run: |
flutter build apk --split-per-abi --release --obfuscate --split-debug-info=./symbols/
- name: 🔨 Build APPBUNDLE
run: |
flutter build appbundle --release --obfuscate --split-debug-info=./symbols/
- name: ⚙️ Create Github Release
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/release/*.apk,build/app/outputs/bundle/release/*.aab"
tag: v1.0.${{ github.run_number }}