You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
carbon/bin/deploy.sh

17 lines
285 B
Bash

#!/usr/bin/env bash
set -e
vercel switch carbon-app
VERCEL_URL=$(vercel)
yarn cy:run --config baseUrl="$VERCEL_URL"
echo "$VERCEL_URL"| tee /dev/tty | pbcopy
read -p "Deploy to production (y/N)?" -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
vercel alias "$VERCEL_URL" carbon.now.sh
fi