From d2e574d1867bbdca3ff8f8f50c8dda9df9d57cb6 Mon Sep 17 00:00:00 2001 From: RoyceDa Date: Sun, 22 Mar 2026 18:28:28 +0200 Subject: [PATCH] =?UTF-8?q?CI/CD=20=D0=B1=D0=B5=D0=B7=20=D1=80=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D1=80=D1=82=D0=B0=20=D0=B4=D0=BE=D0=BA=D0=B5=D1=80?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/service-packs.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/service-packs.yaml b/.gitea/workflows/service-packs.yaml index 43bff8e..5061cbb 100644 --- a/.gitea/workflows/service-packs.yaml +++ b/.gitea/workflows/service-packs.yaml @@ -88,8 +88,16 @@ jobs: find packs -maxdepth 3 -type f 2>/dev/null || true test -n "$(find packs -type f -print -quit 2>/dev/null)" || { echo "packs is empty"; exit 1; } - - name: Install SCP in Docker container - run: apt-get install -y openssh-client + - name: Clean files before upload + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.SDU_SSH_HOST }} + username: ${{ secrets.SDU_SSH_USERNAME }} + password: ${{ secrets.SDU_SSH_PASSWORD }} + port: 22 + script: | + mkdir -p "${{ secrets.SDU_SSH_PACKS }}" + find "${{ secrets.SDU_SSH_PACKS }}" -mindepth 1 -type f -delete - name: Upload to SSH using SCP uses: appleboy/scp-action@master @@ -101,4 +109,4 @@ jobs: source: "packs/*" target: "${{ secrets.SDU_SSH_PACKS }}" strip_components: 1 - rm: true \ No newline at end of file + rm: false \ No newline at end of file