Skip to content

Commit

Permalink
Release prep
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Aug 5, 2024
1 parent df145e5 commit 4cb2fc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ git push
# set $SUPERTOKENS_API_KEY based on reading ./releasePassword file
SUPERTOKENS_API_KEY=$(cat ./releasePassword)

responseStatus=`curl -o $FILENAME -w "%{http_code}" -X PUT \
responseStatus=$(curl -o /dev/null -s -w "%{http_code}" -X PUT \
https://api.supertokens.io/0/frontend/auth-react \
-H 'Content-Type: application/json' \
-H 'api-version: 0' \
-d "{
\"uri\": \"https://cdn.jsdelivr.net/gh/supertokens/prebuiltui@v${version}/build/${new_file_name}\",
\"password\": \"$SUPERTOKENS_API_KEY\"
}"`
if [ $responseStatus -ne "200" ]
}")
if [ "$responseStatus" -ne 200 ]
then
echo "failed PUT API to update js deliver uri on server with status code: $responseStatus. You need to manually call this API with the right url!"
exit 1
Expand Down

0 comments on commit 4cb2fc9

Please sign in to comment.