Skip to content

Commit

Permalink
Rename steps
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Dec 15, 2023
1 parent f76a206 commit c0bcda3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/bin/vip-app-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const debug = debugLib( '@automattic/vip:bin:vip-app-deploy' );

const DEPLOY_PREFLIGHT_PROGRESS_STEPS = [
{ id: 'upload', name: 'Uploading file' },
{ id: 'deploy', name: 'Deploying' },
{ id: 'deploy', name: 'Triggering Deployment' },
];

interface PromptToContinueParams {
Expand Down Expand Up @@ -163,9 +163,10 @@ export async function appDeployCmd( arg: string[] = [], opts: Record< string, un
=============================================================
Processing the file for deployment to your environment...
`;
progressTracker.suffix = `\n${ getGlyphForStatus( status, progressTracker.runningSprite ) } ${
status === 'running' ? 'Loading remaining steps...' : ''
}`;
progressTracker.suffix = `\n${ getGlyphForStatus(
status,
progressTracker.runningSprite
) } Running...`;
};

const failWithError = ( failureError: Error | string ) => {
Expand Down Expand Up @@ -228,6 +229,8 @@ Processing the file for deployment to your environment...
return failWithError( uploadError as Error );
}

progressTracker.stepRunning( 'deploy' );

// Start the deploy
try {
const startDeployResults = await api.mutate( {
Expand All @@ -251,6 +254,9 @@ Processing the file for deployment to your environment...
progressTracker.stepSuccess( 'deploy' );
progressTracker.stopPrinting();

progressTracker.suffix = '';
progressTracker.print( { clearAfter: true } );

const deploymentsUrl = `https://dashboard.wpvip.com/apps/${ appId }/${ env.type }/code/deployments`;
console.log(
`\n✅ ${ chalk.bold(
Expand Down

0 comments on commit c0bcda3

Please sign in to comment.