From 358996cbf2588244b102cd91282eccb4ca30ea24 Mon Sep 17 00:00:00 2001 From: sdarbinyan Date: Thu, 20 Aug 2026 14:42:29 +0400 Subject: [PATCH] ci: stream releases over ssh --- .github/workflows/deploy.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fb11d79..62197b0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,6 +22,9 @@ jobs: deploy: runs-on: ubuntu-latest environment: production + defaults: + run: + shell: bash steps: - name: Checkout @@ -90,9 +93,8 @@ jobs: echo "RELEASE=$RELEASE" >> "$GITHUB_ENV" SSH="ssh -i ~/.ssh/deploy_key -o BatchMode=yes" $SSH "$USER@$HOST" "mkdir -p /srv/marketplaces/releases/$RELEASE/frontend" - rsync -az --delete \ - -e "$SSH" \ - "$SRC/" "$USER@$HOST:/srv/marketplaces/releases/$RELEASE/frontend/" + tar -C "$SRC" -czf - . | $SSH "$USER@$HOST" \ + "tar -xzf - -C /srv/marketplaces/releases/$RELEASE/frontend" - name: Activate release env: