From a9a6fb714372cf559ded5d020a180e8eca357b50 Mon Sep 17 00:00:00 2001 From: Viraj Chandra <95118745+virajchandra51@users.noreply.github.com> Date: Sat, 16 Sep 2023 12:50:43 +0530 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3c8904f..a360dee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,9 +33,12 @@ jobs: run: echo "$PEM" >> tcp.pem && chmod 400 tcp.pem env: PEM: ${{secrets.PEM}} + + - name: Copy build folder contents to server + run: scp -o StrictHostKeyChecking=no -i tcp.pem -r build/* ubuntu@ec2-16-171-64-245.eu-north-1.compute.amazonaws.com:~/home/CodeUtsava7.0/build - name: Doing the magic now - run: ssh -o StrictHostKeyChecking=no -i tcp.pem ubuntu@ec2-16-171-64-245.eu-north-1.compute.amazonaws.com "cd /home && sudo mkdir hui && ls &&" + run: ssh -i tcp.pem ubuntu@ec2-16-171-64-245.eu-north-1.compute.amazonaws.com "sudo systemctl restart ngnix" - name: LIVE!!! run: echo "Site is Live!🚀🚀🚀"