This commit is contained in:
svemagie
2026-03-05 23:19:06 +01:00
parent 710a6432fb
commit 5e9eb12322

32
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Build & Deploy
on:
push:
branches: [main]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Deploy via SSH
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: "_site/*"
target: "/usr/local/bastille/jails/web/root/usr/local/www/blog"
strip_components: 1