summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRishi-k-s <rishikrishna.sr@gmail.com>2026-02-20 14:55:20 +0530
committerRishi-k-s <rishikrishna.sr@gmail.com>2026-02-20 14:55:20 +0530
commit56957253c3fbb07da86de1b5ff815194b5318180 (patch)
treefbd761129649bc51017a532369490aff0d2094a0
parent592d5fda0e20c30c898e3e3f414e19f6d5568c5a (diff)
updated CI/CD
-rw-r--r--.github/workflows/deploy.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 69ae7c6..d8462c5 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -1,4 +1,4 @@
-name: Deploy My website
+name: Deploy Website
on:
push:
@@ -8,13 +8,15 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
+
steps:
- - name: Deploy to droplet via SSH
+ - name: Deploy to VPS via SSH
uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.DO_HOST }}
username: ${{ secrets.DO_USER }}
key: ${{ secrets.DO_SSH_KEY }}
script: |
- cd /var/www/Rishi-k-s.github.io
- bash deploy.sh
+ cd /var/www/rishikrishna.com
+ git pull origin main
+ sudo systemctl reload nginx \ No newline at end of file