22 lines
632 B
YAML
22 lines
632 B
YAML
name: Deploy to Pages
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Deploy via Rsync
|
|
uses: https://github.com/絞り/rsync-deploy-action@v1 # Ein gängiger rsync wrapper
|
|
with:
|
|
host: ${{ secrets.DEPLOY_HOST }}
|
|
user: ${{ secrets.DEPLOY_USER }}
|
|
ssh_private_key: ${{ secrets.DEPLOY_SSH_KEY }}
|
|
local_path: "./*" # Alle Dateien im Repo
|
|
remote_path: "/data/pages/pages/rclone-app"
|
|
args: "-avz --delete" # --delete löscht entfernte Dateien im Ziel
|