From ff2c00b5c602a32783d6efd6ccdb2ca0c1e5735f Mon Sep 17 00:00:00 2001 From: "Ahmed T. Ali" Date: Mon, 30 Oct 2017 20:46:55 +0300 Subject: [PATCH] deploy: update deploy script --- scripts/deploy.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 7173d93..2c18daa 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash set -euo pipefail -npm run -s now -- --token=$NOW_TOKEN --public +now="npm run -s now -- --token=$NOW_TOKEN" +repo_name="${TRAVIS_REPO_SLUG##*/}" + +$now --public +$now alias +$now rm --safe --yes "$repo_name" \ No newline at end of file