From 69fe6dc7b13bbdf795828b36d98556c70e16f7c6 Mon Sep 17 00:00:00 2001 From: Marc Froehlich Date: Mon, 6 Jul 2026 01:22:31 +0200 Subject: [PATCH] Add 11ty website deployment workflow --- .github/workflows/website-deploy.yml | 55 ++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/website-deploy.yml diff --git a/.github/workflows/website-deploy.yml b/.github/workflows/website-deploy.yml new file mode 100644 index 0000000..cfed4d3 --- /dev/null +++ b/.github/workflows/website-deploy.yml @@ -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" \ No newline at end of file