-
Notifications
You must be signed in to change notification settings - Fork 5
/
codemagic.yaml
59 lines (56 loc) · 1.4 KB
/
codemagic.yaml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
workflows:
# ====================
# DEPLOYMENT TO PUB
# ====================
deploy_to_pub:
name: 'Deploy to pub.dev'
instance_type: mac_mini_m1
max_build_duration: 20
environment:
flutter:
version: 3.19.6
scripts:
- name: Install dependencies
script: flutter pub get
- name: Run tests
script: flutter test
- name: Publish package
script: |
echo $PUB_DEV_PUBLISH_ACCESS_TOKEN > ~/.pub-cache/credentials.json
flutter pub publish --dry-run
flutter pub publish
triggering:
events:
- manual
workflows:
pub_dev_release:
name: 'Pub.dev Release workflow'
<<: *def_setup
triggering:
<<: *dev_trigger
environment:
<<: *flutter_version
android_signing:
- movn-dev-android-key
groups:
- dev_credentials
- android
scripts:
- *commit_check
- *guard_only_ios
- *pub_get
- *android_local_properties
- name: Build APK
script: |
flutter build apk --release --flavor dev
artifacts:
- build/app/outputs/apk/dev/release/*.apk
- *mapping
publishing:
<<: *email_notification
firebase:
firebase_service_account: $FIREBASE_DEV_CREDENTIALS
android:
app_id: 1:476796097234:android:41c27b49b861742675530b
groups:
- android-team