Skip to content
Merged
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
15 changes: 15 additions & 0 deletions actions/smart-vercel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ inputs:
description: "Slack webhook"
required: false
default: "none"
hide_git:
description: "Hide .git directory during deployment"
required: false
default: 'false'

outputs:
PREVIEW_OUTPUT:
Expand Down Expand Up @@ -207,8 +211,19 @@ runs:

${VERCEL} link --confirm


# Hide .git directory if hide_git is true
if [ "${HIDE_GIT}" == "true" ] && [ -d ".git" ]; then
mv .git .git.hidden
fi

${VERCEL} ${PROD_MODE:+--prod} deploy | tee deploy.log

# Restore .git directory if it was hidden
if [ "${HIDE_GIT}" == "true" ] && [ -d ".git.hidden" ]; then
mv .git.hidden .git
fi

DEPLOYMENT_URL=$(cat deploy.log)

for DOMAIN in ${ALL_ALIAS_DOMAIN}
Expand Down