Files
frontpage/.gitea/workflows/dev.yml
Daniel Kluge 32a150c0ce
All checks were successful
Deploy Dev Website / Build and Deploy (push) Successful in 43s
Deploy Stable Website / Build and Deploy (push) Successful in 41s
Add workflow for stable
2026-03-22 22:02:22 +01:00

47 lines
1.0 KiB
YAML

name: Deploy Dev Website
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 install
- name: Check and build
run: npm run build
# env:
# KROKI_SERVER: "http://kroki:8000"
- 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/stable
overwrite: true
strip_components: 1