Skip to content

Instantly share code, notes, and snippets.

@mandrasch
Created February 7, 2021 10:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandrasch/16b07d37cb921cae3fde6ea5db17252e to your computer and use it in GitHub Desktop.
Save mandrasch/16b07d37cb921cae3fde6ea5db17252e to your computer and use it in GitHub Desktop.
Uberspace Github Action rsync
# /.github/workflows/main.yml
# Warning: deletes all files on uberspace which are not in repo, use without --delete if unsure
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: rsync deployments
uses: burnett01/rsync-deployments@4.1
with:
switches: -avzr --delete
path: /
remote_path: /home/${{ secrets.UBERSPACE_USER }}/html/
remote_host: ${{ secrets.UBERSPACE_HOST }}
remote_user: ${{ secrets.UBERSPACE_USER }}
remote_key: ${{ secrets.DEPLOY_KEY_PRIVATE }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment