Skip to content

HomoSapiens/action-rsyncer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSyncer GitHub Action

Action on GH marketplace   GitHub release   GitHub

This action uses rsync to sync files (probably) generated by a previous step in the workflow with a remote server.

Secrets

DEPLOY_KEY

Required SSH Key to be used during the rsync operation.

Inputs

flags

Required Flags to pass to rsync. Default -avzr --delete.

options

Required Rsync options. i.e. exclude Default "".

src

Required Local path to be synced.

dst

Required Remote server and path. i.e [email protected]:/var/www/server.com/

Outputs

status

Friendly status of the rsync command.

Example usage

Create a new file in your repository: .github/workflows/rsync.yml.

- name: Deploy to server
  id: deploy
  uses: Pendect/action-rsyncer@master
  env:
    DEPLOY_KEY: ${{secrets.DEPLOY_KEY}}
  with:
    flags: '-avzr --delete'
    options: ''
    src: 'public/'
    dst: '[email protected]:/var/www/server.com'

- name: Display status from deploy
  run: echo "${{ steps.deploy.outputs.status }}"

About

Pendect is reshaping the way you navigate your daily flood of news.

Stay up to date with news events across the globe and be a part in the fight against fake news.

Follow us

pendecthq on twitter

About

Rsync GitHub Action

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 53.8%
  • Dockerfile 46.2%