From 1eca665a628c445e56532923cd1f11861d415934 Mon Sep 17 00:00:00 2001 From: RoyceDa Date: Sun, 22 Mar 2026 17:19:58 +0200 Subject: [PATCH] CI/CD --- .gitea/workflows/service-packs.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/service-packs.yaml b/.gitea/workflows/service-packs.yaml index fd1b0d7..43bff8e 100644 --- a/.gitea/workflows/service-packs.yaml +++ b/.gitea/workflows/service-packs.yaml @@ -78,17 +78,27 @@ jobs: # -u "${{ secrets.SDU_SSH_USERNAME }}" \ # -p '${{ secrets.SDU_SSH_PASSWORD }}' + - name: Check SP + shell: bash + run: | + echo "=== Workspace ===" + pwd + ls -la + echo "=== Packs ===" + 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: Upload ${{ matrix.arch }} to SSH using SCP + - name: Upload to SSH using SCP uses: appleboy/scp-action@master with: host: ${{ secrets.SDU_SSH_HOST }} username: ${{ secrets.SDU_SSH_USERNAME }} password: ${{ secrets.SDU_SSH_PASSWORD }} port: 22 - source: "$GITHUB_WORKSPACE/packs/*" + source: "packs/*" target: "${{ secrets.SDU_SSH_PACKS }}" strip_components: 1 rm: true \ No newline at end of file