@@ -381,9 +381,8 @@ async function _deployCommand(dir: string, options: DeployCommandOptions) {
381
381
const version = deployment . version ;
382
382
383
383
const rawDeploymentLink = `${ authorization . dashboardUrl } /projects/v3/${ resolvedConfig . project } /deployments/${ deployment . shortCode } ` ;
384
- const rawTestLink = `${ authorization . dashboardUrl } /projects/v3/${
385
- resolvedConfig . project
386
- } /test?environment=${ options . env === "prod" ? "prod" : "stg" } `;
384
+ const rawTestLink = `${ authorization . dashboardUrl } /projects/v3/${ resolvedConfig . project
385
+ } /test?environment=${ options . env === "prod" ? "prod" : "stg" } `;
387
386
388
387
const deploymentLink = cliLink ( "View deployment" , rawDeploymentLink ) ;
389
388
const testLink = cliLink ( "Test tasks" , rawTestLink ) ;
@@ -562,8 +561,7 @@ async function _deployCommand(dir: string, options: DeployCommandOptions) {
562
561
const taskCount = deploymentWithWorker . worker ?. tasks . length ?? 0 ;
563
562
564
563
outro (
565
- `Version ${ version } deployed with ${ taskCount } detected task${ taskCount === 1 ? "" : "s" } ${
566
- isLinksSupported ? `| ${ deploymentLink } | ${ testLink } ` : ""
564
+ `Version ${ version } deployed with ${ taskCount } detected task${ taskCount === 1 ? "" : "s" } ${ isLinksSupported ? `| ${ deploymentLink } | ${ testLink } ` : ""
567
565
} `
568
566
) ;
569
567
@@ -586,18 +584,16 @@ async function _deployCommand(dir: string, options: DeployCommandOptions) {
586
584
TRIGGER_VERSION : version ,
587
585
TRIGGER_DEPLOYMENT_SHORT_CODE : deployment . shortCode ,
588
586
TRIGGER_DEPLOYMENT_URL : `${ authorization . dashboardUrl } /projects/v3/${ resolvedConfig . project } /deployments/${ deployment . shortCode } ` ,
589
- TRIGGER_TEST_URL : `${ authorization . dashboardUrl } /projects/v3/${
590
- resolvedConfig . project
591
- } /test?environment=${ options . env === "prod" ? "prod" : "stg" } `,
587
+ TRIGGER_TEST_URL : `${ authorization . dashboardUrl } /projects/v3/${ resolvedConfig . project
588
+ } /test?environment=${ options . env === "prod" ? "prod" : "stg" } `,
592
589
} ,
593
590
outputs : {
594
591
deploymentVersion : version ,
595
592
workerVersion : version ,
596
593
deploymentShortCode : deployment . shortCode ,
597
594
deploymentUrl : `${ authorization . dashboardUrl } /projects/v3/${ resolvedConfig . project } /deployments/${ deployment . shortCode } ` ,
598
- testUrl : `${ authorization . dashboardUrl } /projects/v3/${
599
- resolvedConfig . project
600
- } /test?environment=${ options . env === "prod" ? "prod" : "stg" } `,
595
+ testUrl : `${ authorization . dashboardUrl } /projects/v3/${ resolvedConfig . project
596
+ } /test?environment=${ options . env === "prod" ? "prod" : "stg" } `,
601
597
needsPromotion : options . skipPromotion ? "true" : "false" ,
602
598
} ,
603
599
} ) ;
@@ -608,11 +604,15 @@ export async function syncEnvVarsWithServer(
608
604
projectRef : string ,
609
605
environmentSlug : string ,
610
606
envVars : Record < string , string > ,
611
- parentEnvVars ?: Record < string , string >
607
+ parentEnvVars ?: Record < string , string > ,
608
+ secrets ?: Record < string , boolean > ,
609
+ parentEnvSecrets ?: Record < string , boolean >
612
610
) {
613
611
return await apiClient . importEnvVars ( projectRef , environmentSlug , {
614
612
variables : envVars ,
615
613
parentVariables : parentEnvVars ,
614
+ secrets,
615
+ parentSecrets : parentEnvSecrets ,
616
616
override : true ,
617
617
} ) ;
618
618
}
@@ -640,8 +640,7 @@ async function failDeploy(
640
640
checkLogsForErrors ( logs ) ;
641
641
642
642
outro (
643
- `${ chalkError ( `${ prefix } :` ) } ${
644
- error . message
643
+ `${ chalkError ( `${ prefix } :` ) } ${ error . message
645
644
} . Full build logs have been saved to ${ logPath } `
646
645
) ;
647
646
0 commit comments