Skip to content

A GitHub Action to sync files with a remote host using rsync. πŸ”„

License

Notifications You must be signed in to change notification settings

gwllx/remote-sync

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Remote Sync

A GitHub Action to sync files with a remote host using rsync.

Inputs

Name Description
source Local source directory.
target Remote target directory.
host Remote host name.
user Remote user.
key Private SSH key.
args [optional] Additional rsync arguments.

Example

steps:
  - uses: gwllx/remote-sync@v1
    with:
      source: .
      target: /www
      host: ${{ secrets.DEPLOY_HOST }}
      user: ${{ secrets.DEPLOY_USER }}
      key: ${{ secrets.DEPLOY_KEY }}
      args: -rv --delete