Skip to content

Commit

Permalink
Automated updation of recaptcha.js during deployment. fixes (fossasia…
Browse files Browse the repository at this point in the history
…#3625)

Cat added

tseting travis

Update surge.sh

Fixed deploy.sh

Fixed surge_deploy

file fixed

upd
  • Loading branch information
ashutoshc8101 authored and akshatnitd committed Dec 26, 2020
1 parent 7b98545 commit 1a2475b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ git config user.email "$COMMIT_AUTHOR_EMAIL"

cd repo

# Getting latest version of google recaptcha library
wget "https://www.google.com/recaptcha/api.js"
mv api.js public/js/recaptcha.js

# Actual building and setup of current push or PR.
yarn install
yarn build
Expand Down
4 changes: 3 additions & 1 deletion surge_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ fi

yarn global add surge
# Actual building and setup of current push or PR.
wget "https://www.google.com/recaptcha/api.js"
mv api.js public/js/recaptcha.js
yarn install
yarn build
rm -rf node_modules/
Expand All @@ -16,4 +18,4 @@ export [email protected]
export SURGE_TOKEN=a34fd7119aacd204150edd6a8e29903d

export DEPLOY_DOMAIN=https://pr-${TRAVIS_PULL_REQUEST}-fossasia-susi-web-chat.surge.sh
surge --project ./build --domain $DEPLOY_DOMAIN;
surge --project ./build --domain $DEPLOY_DOMAIN;

0 comments on commit 1a2475b

Please sign in to comment.