24 lines
623 B
YAML
24 lines
623 B
YAML
name: Deploy Portfolio
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Deploy via rsync over SSH
|
|
uses: burnett01/rsync-deployments@7.0.1
|
|
with:
|
|
switches: -avzr --delete --exclude=".git*" --exclude="README.md"
|
|
path: ./
|
|
remote_path: ${{ secrets.DEPLOY_PATH }}
|
|
remote_host: ${{ secrets.DEPLOY_HOST }}
|
|
remote_user: ${{ secrets.DEPLOY_USER }}
|
|
remote_key: ${{ secrets.DEPLOY_SSH_KEY }}
|
|
remote_port: ${{ secrets.DEPLOY_PORT }}
|