Skip to content

petanikode/rsync-deploy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 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: petanikode/rsync-deploy@v1.2
  env:
    SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
    RSYNC_ARGS: "-ahzur --delete"
    BUILD_DIR: "public" # deploy dir (public)
    SERVER_USERNAME: ${{ secrets.SERVER_USERNAME }}
    SERVER_IP: ${{ secrets.SERVER_IP }}
    SERVER_PORT: ${{ secrets.SERVER_PORT }} # ssh port
    DEPLOY_PATH: ${{ secrets.DEPLOY_PATH }} # server path /home/<user>/public_html

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 63.0%
  • Shell 37.0%