diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index cb6d2e75..cd4e33cc 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -411,14 +411,14 @@ jobs: echo "Preparing deployment for $TARGET..." # 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" + SITE_DIR="/home/deploy/sites/branch.klz-cables.com/${{ env.SLUG }}" fi # Transfer files ssh root@alpha.mintel.me "mkdir -p $SITE_DIR"