From e1f7f8ab03b097c2347c7c3be9cb8abde676cb16 Mon Sep 17 00:00:00 2001 From: Andrey Onischenko Date: Thu, 17 Oct 2024 11:05:06 +0300 Subject: [PATCH] Auto update apt repo --- .github/workflows/update-build-release.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/update-build-release.yml b/.github/workflows/update-build-release.yml index cf61d50..5c54591 100644 --- a/.github/workflows/update-build-release.yml +++ b/.github/workflows/update-build-release.yml @@ -119,6 +119,25 @@ jobs: run: | sudo apt-get update -y sudo apt-get install jq -y + + - name: Copy files to APT server + uses: appleboy/scp-action@v0.1.7 + with: + host: ${{ secrets.CLOUD_SSH_HOST }} + username: ${{ secrets.CLOUD_SSH_USERNAME }} + password: ${{ secrets.CLOUD_SSH_PASSWORD }} + source: "dist/*.deb" + target: ~/apt/repo/deb-packages + rm: true + strip_components: 1 + + - name: Update APT repo + uses: appleboy/ssh-action@v1.1.0 + with: + host: ${{ secrets.CLOUD_SSH_HOST }} + username: ${{ secrets.CLOUD_SSH_USERNAME }} + password: ${{ secrets.CLOUD_SSH_PASSWORD }} + script: ~/apt/update-repo.sh ${{ secrets.APT_KEY_PASSPHRASE }} - name: Get Release Notes HTML id: release_notes