Add CI/CD
Some checks failed
Deploy Astro / Build and Deploy (push) Failing after 30s

This commit is contained in:
2026-03-21 16:14:50 +01:00
parent d8e03990ca
commit fc82f6a44e

View File

@@ -0,0 +1,40 @@
name: Deploy Astro
on:
push:
branches:
- dev
jobs:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest
services:
mermaid:
image: yuzutech/kroki-mermaid
kroki:
image: yuzutech/kroki
env:
KROKI_MERMAID_HOST: mermaid
steps:
- uses: actions/checkout@v3
name: Checkout code
- name: Setup node and bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Check and build
run: bun run build
env:
KROKI_SERVER: "http://kroki"
- name: Copy files via ssh
uses: appleboy/scp-action@v1
with:
host: c0ntroller.de
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
source: "dist/*"
target: /srv/website/dev
overwrite: true
strip_components: 1