Skip to content

Commit c0ffe49

Browse files
author
Andrew Hobson
committed
maybe fix deploy script
1 parent 73df3a8 commit c0ffe49

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/deployment_stop.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
set -eux
3+
set -eu
44

55
token=${GITHUB_DEPLOYMENTS_TOKEN:?"Missing GITHUB_TOKEN environment variable"}
66

@@ -34,7 +34,10 @@ if ! repository_id=$(echo "${repository}" | python -c 'import sys, json; print j
3434
exit 3
3535
fi
3636

37-
path_to_repo=$(echo "$CIRCLE_WORKING_DIRECTORY" | sed -e "s:~:$HOME:g")
37+
# does not seem to be necessary for react-uswds, not sure why
38+
# path_to_repo=$(echo "$CIRCLE_WORKING_DIRECTORY" | sed -e
39+
# "s:~:$HOME:g")
40+
path_to_repo=""
3841
url="https://${CIRCLE_BUILD_NUM}-${repository_id}-gh.circle-artifacts.com/0${path_to_repo}/storybook-static/index.html"
3942

4043
if ! deployment=$(curl -s \

0 commit comments

Comments
 (0)