Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ Here are all the inputs [deploy-to-vercel-action](https://github.com/BetaHuhn/de
| `WORKING_DIRECTORY` | Working directory for the Vercel CLI | **No** | N/A |
| `FORCE` | Used to skip the build cache. | **No** | false
| `PREBUILT` | Deploy a prebuilt Vercel Project. | **No** | false
| `ARCHIVE` | Compress deployment code (e.g. "tgz") | **No** | N/A |

## 🛠️ Configuration

Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ inputs:
description: |
Deploy a prebuilt Vercel Project (default: false).
required: false
ARCHIVE:
description: |
Compress deployment code (e.g. "tgz").
required: false
GITHUB_DEPLOYMENT:
description: |
Create a deployment on GitHub (default: true).
Expand Down
12 changes: 11 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15984,6 +15984,10 @@ const context = {
key: 'FORCE',
type: 'boolean',
default: false
}),
ARCHIVE: parser.getInput({
key: 'ARCHIVE',
type: 'string',
})
}

Expand All @@ -16003,6 +16007,7 @@ const setDynamicVars = () => {
context.ACTOR = process.env.ACTOR || context.USER
context.IS_FORK = process.env.IS_FORK === 'true' || false
context.TRIM_COMMIT_MESSAGE = process.env.TRIM_COMMIT_MESSAGE === 'true' || false
context.ARCHIVE = process.env.ARCHIVE || undefined

return
}
Expand Down Expand Up @@ -16250,7 +16255,8 @@ const {
BUILD_ENV,
PREBUILT,
WORKING_DIRECTORY,
FORCE
FORCE,
ARCHIVE
} = __nccwpck_require__(4570)

const init = () => {
Expand Down Expand Up @@ -16279,6 +16285,10 @@ const init = () => {
commandArguments.push('--force')
}

if (ARCHIVE) {
commandArguments.push(`--archive=${ ARCHIVE }`)
}

if (commit) {
const metadata = [
`githubCommitAuthorName=${ commit.authorName }`,
Expand Down
5 changes: 5 additions & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ const context = {
key: 'FORCE',
type: 'boolean',
default: false
}),
ARCHIVE: parser.getInput({
key: 'ARCHIVE',
type: 'string'
})
}

Expand All @@ -117,6 +121,7 @@ const setDynamicVars = () => {
context.ACTOR = process.env.ACTOR || context.USER
context.IS_FORK = process.env.IS_FORK === 'true' || false
context.TRIM_COMMIT_MESSAGE = process.env.TRIM_COMMIT_MESSAGE === 'true' || false
context.ARCHIVE = process.env.ARCHIVE || undefined

return
}
Expand Down
7 changes: 6 additions & 1 deletion src/vercel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const {
BUILD_ENV,
PREBUILT,
WORKING_DIRECTORY,
FORCE
FORCE,
ARCHIVE
} = require('./config')

const init = () => {
Expand Down Expand Up @@ -45,6 +46,10 @@ const init = () => {
commandArguments.push('--force')
}

if (ARCHIVE) {
commandArguments.push(`--archive=${ ARCHIVE }`)
}

if (commit) {
const metadata = [
`githubCommitAuthorName=${ commit.authorName }`,
Expand Down