Skip to content

Commit

Permalink
deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
pegi4 committed Mar 12, 2024
1 parent efb36a2 commit 8455fec
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflow/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Deploy to VPS
name: Deploy Website

on:
push:
branches:
Expand All @@ -8,14 +9,15 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.VPS_SSH_PRIVATE_KEY }}
- name: Checkout code
uses: actions/checkout@v2

- name: Deploy to VPS
run: |
ssh -o StrictHostKeyChecking=no [email protected] 'cd /var/www/senic.site && git pull'
- name: Deploy to Server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
source: "./"
target: "/var/www/senic.site"
rm: true

0 comments on commit 8455fec

Please sign in to comment.