-
Notifications
You must be signed in to change notification settings - Fork 1
26 lines (24 loc) · 790 Bytes
/
deploy.yml
File metadata and controls
26 lines (24 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Build and Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Install and Build 🔧
run: |
npm ci
npm run build
- name: 📂 Deploy via rsync
uses: burnett01/rsync-deployments@v8
with:
switches: -avzr --delete
path: dist/
remote_path: /home/sites/site100026635/web/matthias-andrasch.eu/
remote_host: ${{ secrets.RSYNC_HOST }}
remote_user: ${{ secrets.RSYNC_USER }}
remote_key: ${{ secrets.RSYNC_SSH_KEY }}