Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 783 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 783 Bytes

rsync-deploy

Deploy to a remote server using rsync.

Example usage to sync everything in the workspace folder:

- name: Deploy to server
  uses: maldorne/[email protected]
  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.