Skip to content

Commit 5a9fa2f

Browse files
authored
Add confirm flag to now deployments (#1091)
1 parent f15b292 commit 5a9fa2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deploy.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ cp ./now.json ./output/dev
55
name="dojo.widgets"
66

77
if [ "$TRAVIS_PULL_REQUEST" != "false" ] ; then
8-
nowurl=$(npx now ./output/dist --token=$PUBLIC_NOW_TOKEN --public --name=$name)
8+
nowurl=$(npx now ./output/dist --token=$PUBLIC_NOW_TOKEN --public --name=$name --confirm)
99
if [ "$nowurl" = "" ] ; then
1010
echo "Now deployment failed"
1111
exit 1
1212
fi
1313

1414
echo "* Docs Deployment: $nowurl" &>> deployments.txt
15-
nowurl=$(npx now ./output/dev --token=$PUBLIC_NOW_TOKEN --public --name=$name)
15+
nowurl=$(npx now ./output/dev --token=$PUBLIC_NOW_TOKEN --public --name=$name --confirm)
1616
if [ "$nowurl" = "" ] ; then
1717
echo "Now deployment failed"
1818
exit 1
@@ -21,7 +21,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ] ; then
2121
echo "* Tests Deployment: $nowurl" &>> deployments.txt
2222
else
2323
if [ "$TRAVIS_BRANCH" = "master" ] ; then
24-
nowurl=$(npx now ./output/dist --token=$NOW_TOKEN --public --name=$name --scope=dojo --target=production)
24+
nowurl=$(npx now ./output/dist --token=$NOW_TOKEN --public --name=$name --scope=dojo --target=production --confirm)
2525
if [ "$nowurl" = "" ] ; then
2626
echo "Now deployment failed"
2727
exit 1

0 commit comments

Comments
 (0)