]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
build: Use sftp transport for AppImage deploy step
authorDaniel Wagner <dwagner@suse.de>
Mon, 3 Apr 2023 14:08:41 +0000 (16:08 +0200)
committerDaniel Wagner <wagi@monom.org>
Mon, 3 Apr 2023 14:41:30 +0000 (16:41 +0200)
Also split deploy strep from build step.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
.github/workflows/appimage.yml

index 76517d5a16e220ec113a88da7681c2dbd409afcf..3d4b82951e34aa32609c9edf7d0da42557316bd3 100644 (file)
@@ -33,11 +33,28 @@ jobs:
         with:
           name: AppImage
           path: '*.AppImage*'
-      - name: upload artifacts to external
-        uses: SamKirkland/FTP-Deploy-Action@v4.3.4
+
+  deploy-appimage:
+    name: deploy AppImage
+    runs-on: ubuntu-latest
+    needs: build-appimage
+    steps:
+      - name: Download artifact
+        uses: dawidd6/action-download-artifact@v2
         with:
-          server: oxygen.monom.org
-          username: linux-nvme
-          password: ${{ secrets.SFTP_PASSWORD }}
-          protocol: sftp
+          workflow: ${{ github.event.workflow_run.workflow_id }}
+          workflow_conclusion: success
+      - name: FTP Deployer
+        uses: sand4rt/ftp-deployer@v1.4
+        with:
+          sftp: true
+          host: ${{ secrets.SFTP_SERVER }}
           port: 22
+          username: ${{ secrets.SFTP_USERNAME }}
+          password: ${{ secrets.SFTP_PASSWORD }}
+          remote_folder: '/upload'
+          local_folder: '.'
+          cleanup: false
+          include: '[ "*", "**/*" ]'
+          exclude: '[".github/**", ".git/**", "*.env"]'
+          pasive: true