fossasia/meilix-generator

View on GitHub
pr_deploy.sh

Summary

Maintainability
Test Coverage
#!/usr/bin/env bash
if [ “$TRAVIS_PULL_REQUEST” == “false” ]; then
echo “Not a PR. Skipping surge deployment.”
exit 0
fi

npm i -g surge

export SURGE_LOGIN=test@example.co.in
# Token of a dummy account
export SURGE_TOKEN=d1c28a7a75967cc2b4c852cca0d12206

export DEPLOY_DOMAIN=https://pr-${TRAVIS_PULL_REQUEST}-fossasia-meilix.surge.sh
surge --project ./templates --domain $DEPLOY_DOMAIN;