From 0bd55c1dee69afb01ab7abafca06e7737b32293c Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Wed, 4 Mar 2026 12:33:08 +0100 Subject: [PATCH] fix(deploy): revert to bash variables for SITE_DIR calculation to prevent gitea actions parser crash --- .gitea/workflows/deploy.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 6d9cab38..6bb484b4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -402,15 +402,18 @@ jobs: chmod 600 ~/.ssh/id_ed25519 ssh-keyscan -H alpha.mintel.me >> ~/.ssh/known_hosts 2>/dev/null + # Determine deployment paths + echo "Preparing deployment for $TARGET..." + # Transfer and Restart - if [[ "${{ env.TARGET }}" == "production" ]]; then + if [[ "$TARGET" == "production" ]]; then SITE_DIR="/home/deploy/sites/klz-cables.com" - elif [[ "${{ env.TARGET }}" == "testing" ]]; then + elif [[ "$TARGET" == "testing" ]]; then SITE_DIR="/home/deploy/sites/testing.klz-cables.com" - elif [[ "${{ env.TARGET }}" == "staging" ]]; then + elif [[ "$TARGET" == "staging" ]]; then SITE_DIR="/home/deploy/sites/staging.klz-cables.com" else - SITE_DIR="/home/deploy/sites/branch.klz-cables.com/${{ env.SLUG }}" + SITE_DIR="/home/deploy/sites/branch.klz-cables.com/$SLUG" fi ssh root@alpha.mintel.me "mkdir -p $SITE_DIR"