From 028f3ce4600e4d84047a14b502da0f39ff35901a Mon Sep 17 00:00:00 2001
From: SeeLook <seelook@gmail.com>
Date: Wed, 12 Feb 2025 17:40:33 +0100
Subject: [PATCH] [CD/CI] fix AppImage names, upload to SF

---
 .github/workflows/make_deploy.yml | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/make_deploy.yml b/.github/workflows/make_deploy.yml
index 23c9f4fa..964d3282 100644
--- a/.github/workflows/make_deploy.yml
+++ b/.github/workflows/make_deploy.yml
@@ -85,9 +85,20 @@ jobs:
         rm linuxdeploy-plugin-qt-x86_64.AppImage
 
         mv *.AppImage ../../${{env.EXECUTABLE}}-${{ env.NOOTKA_VERSION }}-b${{ env.NOOTKA_COM_CNT }}-Linux-x86_64.AppImage
+        ls ../../
 
     - name: '📤 Upload artifact: AppImage'
       uses: actions/upload-artifact@v4
       with:
-        name: ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux-x86_64.AppImage
-        path: ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux-x86_64.AppImage
+        name: ${{env.EXECUTABLE}}-${{ env.NOOTKA_VERSION }}-b${{ env.NOOTKA_COM_CNT }}-Linux-x86_64.AppImage
+        path: ${{env.EXECUTABLE}}-${{ env.NOOTKA_VERSION }}-b${{ env.NOOTKA_COM_CNT }}-Linux-x86_64.AppImage
+
+    - name: '📤 Upload AppImage to SF'
+        uses: burnett01/rsync-deployments@5.0
+        with:
+          switches: -avzr --delete
+          path: ${{env.EXECUTABLE}}-${{ env.NOOTKA_VERSION }}-b${{ env.NOOTKA_COM_CNT }}-Linux-x86_64.AppImage
+          remote_path: ${{ secrets.REMOTE_PATH }}
+          remote_host: ${{ secrets.SSH_HOST  }}
+          remote_user: ${{ secrets.SSH_USER }}
+          remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
-- 
GitLab