🐛 Fix didn't pass post-deploy parameters

This commit is contained in:
LittleSheep 2024-10-03 21:44:43 +08:00
parent 34f20e02ae
commit 2240ac30c6
2 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{
"name": "roadsign-cli",
"module": "index.ts",
"version": "1.0.1",
"version": "1.0.2",
"repository": "https://github.com/solsynth/roadsign",
"type": "module",
"scripts": {
@ -34,4 +34,3 @@
"ora": "^8.1.0"
}
}

View File

@ -113,7 +113,7 @@ export class DeployCommand extends Command {
let idx = 0
for (const deployment of localCfg.config.deployments ?? []) {
this.context.stdout.write(chalk.cyan(`Deploying ${idx + 1} out of ${localCfg.config.deployments.length} deployments...\n`))
await this.deploy(this.server, deployment.region, deployment.site, deployment.path)
await this.deploy(this.server, deployment.region, deployment.site, deployment.path, deployment.postDeploy)
}
this.context.stdout.write(chalk.green(`All deployments has been deployed!\n`))