Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
virajchandra51 authored Sep 16, 2023
1 parent 383f6f5 commit a9a6fb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/* [email protected]:~/home/CodeUtsava7.0/build

- name: Doing the magic now
run: ssh -o StrictHostKeyChecking=no -i tcp.pem [email protected] "cd /home && sudo mkdir hui && ls &&"
run: ssh -i tcp.pem [email protected] "sudo systemctl restart ngnix"

- name: LIVE!!!
run: echo "Site is Live!🚀🚀🚀"

0 comments on commit a9a6fb7

Please sign in to comment.