Skip to content

Commit

Permalink
Update deb_package.yml
Browse files Browse the repository at this point in the history
updated SSH info ,updated scripts for reprepro
  • Loading branch information
cc0h authored Oct 4, 2023
1 parent 5d77aaa commit 193f49d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deb_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,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/dynamicx_package_hub/wwwroot/ppa/incoming"
- name: Deploy deb package to source
if: ${{ github.repository == 'rm-controls/rm_control' }}
uses: appleboy/ssh-action@master
Expand All @@ -38,6 +39,6 @@ jobs:
username: ${{ secrets.SOURCE_SSH_NAME }}
key: ${{ secrets.SOURCE_SSH_KEYGEN }}
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/dynamicx_package_hub/wwwroot/ppa
sudo reprepro -s --waitforlock 1000 -b . includedeb focal /home/ubuntu/dynamicx_package_hub/wwwroot/ppa/incoming/*.deb && \
sudo rm -f incoming/*.deb

0 comments on commit 193f49d

Please sign in to comment.