deployHostingBeta method

Future<bool> deployHostingBeta()

Deploy to Firebase Hosting (beta target)

Implementation

Future<bool> deployHostingBeta() async {
  info('Deploying to Firebase Hosting (beta)...');
  final String? projectId = _requireFirebaseProjectId();
  if (projectId == null) {
    return false;
  }

  final ProcessResult? result = await _runner.runWithRetry(
    'firebase',
    <String>['deploy', '--only', 'hosting:beta', '--project', projectId],
    workingDirectory: config.outputDir,
    environment: _authEnvironment,
    operationName: 'Deploy Hosting (beta)',
  );

  return result != null && result.success;
}