set -xe
-touch .env
+cp ~/.env .env
if [ "$(git rev-parse origin/main)" == "$(git rev-parse HEAD)" ]; then \
echo "Deploying to Production"
export S3_BUCKET=unlimited.pizza;
- make environment=production upload
+ sudo make environment=production upload
exit 0;
fi
echo "Deploying to Dev"
export S3_BUCKET=limited.pizza;
-make upload
+sudo make upload