This action uses rsync to sync files (probably) generated by a previous step in the workflow with a remote server.
Required SSH Key to be used during the rsync operation.
Required Flags to pass to rsync. Default -avzr --delete
.
Required Rsync options. i.e. exclude Default ""
.
Required Local path to be synced.
Required Remote server and path. i.e [email protected]:/var/www/server.com/
Friendly status of the rsync command.
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 }}"
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.