From 296ead2c744581bdc16f127cadae613b6b42990e Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Wed, 4 Mar 2026 12:13:40 +0100 Subject: [PATCH] fix(deploy): use native actions interpretation for SLUG and TARGET to avoid empty SSH deployment paths --- .gitea/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index ba2ac993..c96d11b2 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -371,14 +371,14 @@ jobs: ssh-keyscan -H alpha.mintel.me >> ~/.ssh/known_hosts 2>/dev/null # Transfer and Restart - if [[ "$TARGET" == "production" ]]; then + if [[ "${{ env.TARGET }}" == "production" ]]; then SITE_DIR="/home/deploy/sites/klz-cables.com" - elif [[ "$TARGET" == "testing" ]]; then + elif [[ "${{ env.TARGET }}" == "testing" ]]; then SITE_DIR="/home/deploy/sites/testing.klz-cables.com" - elif [[ "$TARGET" == "staging" ]]; then + elif [[ "${{ env.TARGET }}" == "staging" ]]; then SITE_DIR="/home/deploy/sites/staging.klz-cables.com" else - SITE_DIR="/home/deploy/sites/branch.klz-cables.com/${SLUG:-unknown}" + SITE_DIR="/home/deploy/sites/branch.klz-cables.com/${{ env.SLUG }}" fi # Transfer files ssh root@alpha.mintel.me "mkdir -p $SITE_DIR"