Created
February 7, 2021 10:55
-
-
Save mandrasch/16b07d37cb921cae3fde6ea5db17252e to your computer and use it in GitHub Desktop.
Uberspace Github Action rsync
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /.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/[email protected] | |
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