Add GitHub Actions workflow for VPS deployment

This commit is contained in:
Tatiana 2026-01-22 21:37:17 +01:00 committed by GitHub
parent 67e4b2b5c7
commit bfbb920f88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 23 additions and 0 deletions

23
deploy.ylm Normal file
View File

@ -0,0 +1,23 @@
name: Deploy to VPS
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Copy files to VPS
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.VPS_HOST }}
username: deploy
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
/home/deploy/deploy.sh