requestFirebaseDeploy method
Deploy the entire package after the process is complete.
処理終了後にまとめてデプロイします。
Nothing is scheduled with --local or --no-deploy.
Implementation
void requestFirebaseDeploy(FirebaseDeployPostActionType type) {
if (isLocalApply) {
return;
}
if (isNoDeployApply || noDeploy) {
label("Skip scheduling firebase deploy (--no-deploy): ${type.name}");
return;
}
final action = postActions.firstWhereOrNull(
(item) => item is _FirebaseDeployPostAction,
);
if (action != null) {
postActions.remove(action);
postActions.add(
_FirebaseDeployPostAction(
[...(action as _FirebaseDeployPostAction).types, type].distinct(),
),
);
} else {
postActions.add(_FirebaseDeployPostAction([type]));
}
}