Skip to content

add deployment gaction #1

add deployment gaction

add deployment gaction #1

Workflow file for this run

name: Sync to Server

Check failure on line 1 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

`dispatch` is not a valid event name
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 }}