]> git.r.bdr.sh - rbdr/r.bdr.sh/blobdiff - scripts/ci.sh
Update to jekyll 2.0.1
[rbdr/r.bdr.sh] / scripts / ci.sh
index 5dcfaf3e6ad13ba6d647ccc73f5834a7d3976203..385749d414e9c88109b9f125f018f1252dbc908f 100755 (executable)
@@ -2,13 +2,15 @@
 
 set -xe
 
 
 set -xe
 
+cp ~/.env .env
+
 if [ "$(git rev-parse origin/main)" == "$(git rev-parse HEAD)" ]; then \
         echo "Deploying to Production"
 if [ "$(git rev-parse origin/main)" == "$(git rev-parse HEAD)" ]; then \
         echo "Deploying to Production"
-                               export $S3_BUCKET=unlimited.pizza;
-                               make environment=production upload
+                               echo "S3_BUCKET=unlimited.pizza" >> .env
+                               sudo make environment=production upload
                                exit 0;
 fi
 
 echo "Deploying to Dev"
                                exit 0;
 fi
 
 echo "Deploying to Dev"
-export $S3_BUCKET=limited.pizza;
-make upload
+export S3_BUCKET=limited.pizza;
+sudo make upload