Add basic GitHub Action

This commit is contained in:
2023-12-20 10:44:38 +01:00
commit 05e907702c
4 changed files with 72 additions and 0 deletions

29
README.md Normal file
View File

@@ -0,0 +1,29 @@
# rsync deploy action
Example usage:
```yaml
name: 'Build and deploy'
run-name: 'Build and Deploy'
on:
push:
branches:
- main
jobs:
deploy-blog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout
- name: Deploy files
uses: https://git.roy.lv/actions/rsync-deploy-action # Full URL is Gitea Actions specific
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
RSYNC_SOURCE: ./*
RSYNC_DESTINATION: /path/to/rsync/to/
RSYNC_USERHOST: user@example.host
with:
rsync-arguments: --archive --compress --delete --verbose
```