Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions deployment/deploy-qa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ NC='\033[0m'
make release

echo -en "${GREEN}Pushing to builds ...${NC}\n"
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-builds/web-sdk/branch-latest.min.js
aws s3 cp --content-type="text/javascript" dist/build.js s3://branch-builds/web-sdk/branch.js
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-builds-usw2/web-sdk/branch-latest.min.js
aws s3 cp --content-type="text/javascript" dist/build.js s3://branch-builds-usw2/web-sdk/branch.js

# External services app - ID: 436637608899006753
./deployment/build-example-html.sh "key_live_plqOidX7fW71Gzt0LdCThkemDEjCbTgx" "https://api.stage.branch.io" "https://cdn.branch.io/branch-staging-latest.min.js"
aws s3 cp example.html s3://branch-cdn/example-staging.html
aws s3 cp example.html s3://branch-cdn-usw2/example-staging.html

echo -en "${GREEN}Pushing to CDN ...${NC}\n"
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn/branch-staging-latest.min.js --cache-control "max-age=300"
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn-usw2/branch-staging-latest.min.js --cache-control "max-age=300"

echo -en "Invalidating cloudfront distribution for staging ...\n"
aws configure set preview.cloudfront true
Expand Down
12 changes: 6 additions & 6 deletions deployment/release-s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ make release

# Engagement Pro Production Testing App - ID: 1364963849844839205
./deployment/build-example-html.sh "key_live_gAbR03mCEte9DLh6L9GFApebvyg4mMDw" "https://api2.branch.io" "https://cdn.branch.io/branch-latest.min.js"
aws s3 cp example.html s3://branch-builds/example.html
aws s3 cp example.html s3://branch-cdn/example.html
aws s3 cp example.html s3://branch-builds-usw2/example.html
aws s3 cp example.html s3://branch-cdn-usw2/example.html

aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.js s3://branch-cdn/branch-latest.js --cache-control "max-age=300"
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn/branch-$VERSION.min.js --cache-control "max-age=300"
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn/branch-latest.min.js --cache-control "max-age=300"
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.js s3://branch-cdn-usw2/branch-latest.js --cache-control "max-age=300"
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn-usw2/branch-$VERSION.min.js --cache-control "max-age=300"
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn-usw2/branch-latest.min.js --cache-control "max-age=300"

echo -en "Invalidating cloudfront distribution...\n"
aws configure set preview.cloudfront true
Expand All @@ -29,4 +29,4 @@ echo
read -p "Is https://cdn.branch.io/example.html using the right version number $VERSION?" -n 1 -r
echo
read -p "Is https://www.npmjs.com/package/branch-sdk using the right version number $VERSION?" -n 1 -r
echo
echo
2 changes: 1 addition & 1 deletion examples/example.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ <h4>Response</h4>
"margin": 5,
"width": 1000,
"image_format": "png",
"center_logo_url": "https://branch-assets.s3.us-west-1.amazonaws.com/branch-badge-dark.svg",
"center_logo_url": "https://branch-assets-usw2.s3.us-west-2.amazonaws.com/branch-badge-dark.svg",
};
const req = {
...linkData,
Expand Down