Skip to content

Commit

Permalink
add deployment gaction
Browse files Browse the repository at this point in the history
  • Loading branch information
vimeh committed Sep 11, 2023
1 parent 0e2ab25 commit e3cfab7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
@@ -0,0 +1,23 @@
name: Sync to Server

on:
dispatch:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: rsync deployment
uses: burnett01/rsync-deployments@6.0.0
with:
switches: -avzr --delete
remote_path: /root/
remote_host: ${{ env.SERVER_IP }}
remote_user: root
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}

0 comments on commit e3cfab7

Please sign in to comment.