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 ...@@ -8,13 +8,9 @@ if [ "$DEPLOY_ENVIRONMENT" = "production" ]; then
fi fi
for CWD in $CHANGED_EXAMPLES ; do for CWD in $CHANGED_EXAMPLES ; do
if [[ $CWD = examples* ]]; then HYPHENS=$(echo "$CWD" | tr '/' '-')
HYPHENS=$(echo "$CWD" | tr '/' '-') PROJECT="nextjs-$HYPHENS"
PROJECT="nextjs-$HYPHENS" echo "Deploying directory $CWD as $PROJECT to Vercel..."
echo "Deploying directory $CWD as $PROJECT to Vercel..." vercel link --cwd "$CWD" --scope vercel --project "$PROJECT" --token "$VERCEL_API_TOKEN" --yes
vercel link --cwd "$CWD" --scope vercel --project "$PROJECT" --token "$VERCEL_API_TOKEN" --yes vercel deploy --cwd "$CWD" --token "$VERCEL_API_TOKEN" $PROD
vercel deploy --cwd "$CWD" --token "$VERCEL_API_TOKEN" $PROD
else
echo "Ignoring non-example $CWD"
fi
done; done;
...@@ -181,7 +181,7 @@ async function main() { ...@@ -181,7 +181,7 @@ async function main() {
}) })
cmd.on('error', (err) => reject(err)) cmd.on('error', (err) => reject(err))
}) })
} else { } else if (!listChangedDirectories) {
console.log( console.log(
`No matching changed files for ${isNegated ? 'not ' : ''}"${type}":\n` + `No matching changed files for ${isNegated ? 'not ' : ''}"${type}":\n` +
changedFilesOutput.trim() 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