From 18e937e1a98d4c5a27103ff82ff88268da854762 Mon Sep 17 00:00:00 2001 From: cc0h <116955603+cc0h@users.noreply.github.com> Date: Sat, 7 Oct 2023 14:03:30 +0800 Subject: [PATCH] Update deb_package.yml Work with the newly deployed server. --- .github/workflows/deb_package.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deb_package.yml b/.github/workflows/deb_package.yml index fe6e48b8..fedd1648 100644 --- a/.github/workflows/deb_package.yml +++ b/.github/workflows/deb_package.yml @@ -31,8 +31,9 @@ jobs: host: ${{ secrets.SOURCE_SSH_HOST }} username: ${{ secrets.SOURCE_SSH_NAME }} key: ${{ secrets.SOURCE_SSH_KEYGEN }} + port: ${{ secrets.SOURCE_SSH_PORT }} source: "*.deb" - target: "/usr/local/web/rm-source/ubuntu/incoming/" + target: "/home/dynamicx/package_hub/wwwroot/ppa/incoming" - name: Deploy deb package to source if: ${{ github.repository == 'rm-controls/rm_controllers' }} uses: appleboy/ssh-action@master @@ -40,7 +41,7 @@ jobs: host: ${{ secrets.SOURCE_SSH_HOST }} username: ${{ secrets.SOURCE_SSH_NAME }} key: ${{ secrets.SOURCE_SSH_KEYGEN }} + port: ${{ secrets.SOURCE_SSH_PORT }} script: | - cd /usr/local/web/rm-source/ubuntu/incoming/ - reprepro -s -b /usr/local/web/rm-source/ubuntu/ --waitforlock 1000 includedeb focal /usr/local/web/rm-source/ubuntu/incoming/*.deb && \ - rm -f *.deb + cd /home/dynamicx/package_hub/wwwroot/ppa/ + bash deploy.sh