rsync-action/README.md

855 B

Rsync action

This action sends the contents of a directory to a remote server using rsync.

Usage

Basic usage:

- name: Transfer files
  uses: https://git.pvv.ntnu.no/oysteikt/rsync-action@v1
  with:
    source: ./path/to/directory/
    target: /path/at/remote/
    username: username
    host: hostname
    ssh-key: ${{ secrets.SSH_KEY }}

Advanced usage:

- name: Transfer files
  uses: https://git.pvv.ntnu.no/oysteikt/rsync-action@v1
  with:
    source: ./path/to/directory/
    target: /path/at/remote/
    username: username
    host: hostname
    port: 2222
    ssh-key: ${{ secrets.SSH_KEY }}
    args: -avz --mkpath --exclude 'node_modules' --delete
    known-hosts-content: "[hostname]:2222 ssh-ed25519 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA