Skip to content

File deployments

Actions
GitHub Action that uploads files to remote servers (rsync + SSH)
v1
Latest
Star (3)

GitHub file publishing actions

Deploy files to remote servers via rsync + SSH by copying them. See the CHANGELOG.md for details.

Examples

An example configuration for a step:

- name: Upload files
  uses: 49nord/action-files@v2
  with:
    src: output/
    dest: [email protected]:/var/www/html/
    ssh_key: ${{ secrets.SSH_KEY }}
    known_hosts: |
      example.com ssh-rsa AAAAB....
      example.com ecdsa-sha2-nistp256 AAAAE....

Note the importantance of keeping the trailing slashes on src and dest to prevent rsync from creating subdirectories. The known_hosts contents can be copied from a well-known hostfile or generated using ssh-keyscan in a pinch, it is important to ensure that the hostname matches the one in dest.

Alternatives

File deployments is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

GitHub Action that uploads files to remote servers (rsync + SSH)
v1
Latest

File deployments is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.