Skip to content

Commit

Permalink
feat(vercel): add archive option for deploy executor
Browse files Browse the repository at this point in the history
  • Loading branch information
iuliancmarcu committed Jun 24, 2024
1 parent dc49a85 commit b2e6388
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vercel/src/executors/deploy/deploy.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { vercelToken } from '../../utils/vercel-token'
export interface DeployOptions {
buildTarget?: string
regions?: string
archive?: 'tgz'
}

export async function deployExecutor(
Expand Down Expand Up @@ -51,6 +52,7 @@ export async function deployExecutor(
context.configurationName === 'production' && '--prod',
vercelToken && `--token=${vercelToken}`,
options.regions && `--regions=${options.regions}`,
options.archive && `--archive=${options.archive}`,

USE_VERBOSE_LOGGING && '--debug'
]), {
Expand Down
12 changes: 12 additions & 0 deletions packages/vercel/src/executors/deploy/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@
"regions": {
"type": "string",
"description": "Regions to deploy to"
},
"buildTarget": {
"type": "string",
"description": "Build target to deploy"
},
"archive": {
"type": "string",
"description": "Type of archive to use when uploading the build",
"enum": ["tgz"],
"$default": "atom",
"x-prompt": "Archive type",
"x-display": "radio"
}
}
}

0 comments on commit b2e6388

Please sign in to comment.