Unverified Commit 6a603464 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub
parent 922b5de0
......@@ -8,13 +8,9 @@ if [ "$DEPLOY_ENVIRONMENT" = "production" ]; then
fi
for CWD in $CHANGED_EXAMPLES ; do
if [[ $CWD = examples* ]]; then
HYPHENS=$(echo "$CWD" | tr '/' '-')
PROJECT="nextjs-$HYPHENS"
echo "Deploying directory $CWD as $PROJECT to Vercel..."
vercel link --cwd "$CWD" --scope vercel --project "$PROJECT" --token "$VERCEL_API_TOKEN" --yes
vercel deploy --cwd "$CWD" --token "$VERCEL_API_TOKEN" $PROD
else
echo "Ignoring non-example $CWD"
fi
HYPHENS=$(echo "$CWD" | tr '/' '-')
PROJECT="nextjs-$HYPHENS"
echo "Deploying directory $CWD as $PROJECT to Vercel..."
vercel link --cwd "$CWD" --scope vercel --project "$PROJECT" --token "$VERCEL_API_TOKEN" --yes
vercel deploy --cwd "$CWD" --token "$VERCEL_API_TOKEN" $PROD
done;
......@@ -181,7 +181,7 @@ async function main() {
})
cmd.on('error', (err) => reject(err))
})
} else {
} else if (!listChangedDirectories) {
console.log(
`No matching changed files for ${isNegated ? 'not ' : ''}"${type}":\n` +
changedFilesOutput.trim()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment