Gitea/GitHub action to transfer files using rsync
Go to file
Oystein Kristoffer Tveit a90559a94a
Initial commit
2024-05-01 14:56:17 +02:00
LICENSE Initial commit 2024-05-01 14:56:17 +02:00
README.md Initial commit 2024-05-01 14:56:17 +02:00
action.yml Initial commit 2024-05-01 14:56:17 +02:00

README.md

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