From 392206e0d10a7d33a53710b707e0c6e45b3da85b Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Sat, 21 Mar 2026 16:14:50 +0100 Subject: [PATCH] Add CI/CD --- .gitea/workflows/astro.yml | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .gitea/workflows/astro.yml diff --git a/.gitea/workflows/astro.yml b/.gitea/workflows/astro.yml new file mode 100644 index 0000000..d4fdca4 --- /dev/null +++ b/.gitea/workflows/astro.yml @@ -0,0 +1,46 @@ +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@v4 + name: Checkout code + + - name: Setup node and npm + uses: actions/setup-node@v3 + with: + node-version: lts/* + + - name: Install dependencies + run: npm ci + + - name: Check and build + run: npm 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