Add 11ty website deployment workflow

This commit is contained in:
Marc Froehlich
2026-07-06 01:22:31 +02:00
parent 80214bf42d
commit 69fe6dc7b1
+55
View File
@@ -0,0 +1,55 @@
name: Build and Deploy Website
on:
push:
branches:
- main
paths:
- website/**
- github_docs/**
- .github/workflows/website-deploy.yml
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
concurrency:
group: website-deploy
cancel-in-progress: true
permissions:
contents: read
jobs:
build-and-deploy:
name: Build and Deploy 11ty Website
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: npm
cache-dependency-path: website/package-lock.json
- name: Install dependencies
working-directory: website
run: npm ci
- name: Build website
working-directory: website
run: npm run build
- name: Deploy via rsync
uses: easingthemes/ssh-deploy@v5.1.0
with:
SSH_PRIVATE_KEY: ${{ secrets.KST4CONTEST_DEPLOY_KEY }}
REMOTE_HOST: ${{ secrets.KST4CONTEST_DEPLOY_HOST }}
REMOTE_USER: ${{ secrets.KST4CONTEST_DEPLOY_USER }}
SOURCE: website/_site/
TARGET: ${{ secrets.KST4CONTEST_DEPLOY_PATH }}
ARGS: "-rlgoDzvc --delete"