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: