Skip to content

Github Action to rsync a repository to a remote server.

Notifications You must be signed in to change notification settings

maldorne/rsync-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

rsync-deploy

Deploy to a remote server using rsync.

Example usage to sync everything in the workspace folder:

- name: Deploy to server
  uses: maldorne/rsync-deploy@v2.0
  env:
    DEPLOY_KEY: ${{ secrets.REMOTE_SSH_KEY }}
    REMOTE_USER: ${{ secrets.REMOTE_USER }}
    REMOTE_SERVER: ${{ secrets.REMOTE_SERVER }}
    REMOTE_PORT: ${{ secrets.REMOTE_PORT }}
    REMOTE_PATH: ${{ secrets.REMOTE_PATH }}
    FOLDER: "./"
    EXCLUDE_LIST: ".github/workflows/exclude.txt"

If you only want to sync a specific subfolder you can put that folder in the FOLDER env var instead.

The EXCLUDE_LIST is a file with a list of files/directories that will be ignored during the rsync.

Project forked from AEnterprise/rsync-deploy.

About

Github Action to rsync a repository to a remote server.

Resources

Stars

Watchers

Forks

Packages

No packages published