From 94c634752114218d6f72087533682f2d7483d57a Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Mon, 2 Mar 2026 01:37:45 +0300 Subject: [PATCH] ci: add post-deploy cleanup step to remove old assets on VPS --- .github/workflows/deploy.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4235a48..a563e46 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -55,3 +55,11 @@ jobs: source: 'dist/*' target: '/var/www/telegram.pezkiwi.app' strip_components: 1 + + - name: Cleanup old assets on VPS + uses: appleboy/ssh-action@v1.0.0 + with: + host: ${{ secrets.VPS2_HOST }} + username: ${{ secrets.VPS2_USER }} + key: ${{ secrets.VPS2_SSH_KEY }} + script: bash /opt/cleanup-miniapp.sh