Skip to content

Commit 47e4aa7

Browse files
committed
codemagic web
1 parent 6dba1ee commit 47e4aa7

File tree

2 files changed

+37
-6
lines changed

2 files changed

+37
-6
lines changed

codemagic.yaml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ workflows:
88
cache_paths:
99
- $FLUTTER_ROOT/.pub-cache
1010
- $HOME/.gradle/caches
11-
- $HOME/Library/Caches/CocoaPods
1211
triggering:
1312
events:
1413
- tag
@@ -67,7 +66,6 @@ workflows:
6766
cache:
6867
cache_paths:
6968
- $FLUTTER_ROOT/.pub-cache
70-
- $HOME/.gradle/caches
7169
- $HOME/Library/Caches/CocoaPods
7270
triggering:
7371
events:
@@ -118,3 +116,36 @@ workflows:
118116
submit_to_testflight: true
119117
submit_to_app_store: true
120118
cancel_previous_submissions: true
119+
120+
web-workflow:
121+
name: Web Workflow
122+
instance_type: mac_mini_m2
123+
max_build_duration: 120
124+
working_directory: untitled_app
125+
cache:
126+
cache_paths:
127+
- $FLUTTER_ROOT/.pub-cache
128+
triggering:
129+
events:
130+
- tag
131+
tag_patterns:
132+
- pattern: 'v*'
133+
include: true
134+
environment:
135+
groups:
136+
- secrets
137+
- firebase
138+
flutter: stable
139+
scripts:
140+
- name: Get Dependencies
141+
script: flutter pub get
142+
- name: Build Flutter web
143+
script: |
144+
flutter config --enable-web
145+
flutter build web --release \
146+
--dart-define=ALGOLIA_APP_ID=$ALGOLIA_APP_ID \
147+
--dart-define=SEARCH_API_KEY=$SEARCH_API_KEY \
148+
--dart-define=KLIPY_API_KEY=$KLIPY_API_KEY
149+
- name: Deploy to Firebase Hosting
150+
script: |
151+
firebase deploy --only hosting --non-interactive --token "$FIREBASE_TOKEN"

untitled_app/pubspec.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,10 +1033,10 @@ packages:
10331033
dependency: transitive
10341034
description:
10351035
name: meta
1036-
sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
1036+
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
10371037
url: "https://pub.dev"
10381038
source: hosted
1039-
version: "1.17.0"
1039+
version: "1.16.0"
10401040
mime:
10411041
dependency: transitive
10421042
description:
@@ -1566,10 +1566,10 @@ packages:
15661566
dependency: transitive
15671567
description:
15681568
name: test_api
1569-
sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55
1569+
sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00"
15701570
url: "https://pub.dev"
15711571
source: hosted
1572-
version: "0.7.7"
1572+
version: "0.7.6"
15731573
timing:
15741574
dependency: transitive
15751575
description:

0 commit comments

Comments
 (0)