From 7854ac18f94a9ffbcc71a929dcf4e49fec2861f9 Mon Sep 17 00:00:00 2001 From: hikari <94219809+metantesan@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:09:03 +0330 Subject: [PATCH] Update build.yaml --- .github/workflows/build.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 973f945..0d81261 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -10,6 +10,7 @@ env: name: ${{ github.event.repository.name }} release_name: ${{ github.ref_name }} GH_TOKEN: ${{ github.token }} + HOST: ${{ secrets.SSH_HOST }} jobs: build-beta: if: github.event.release.prerelease == true @@ -34,7 +35,7 @@ jobs: - name: generate ssh-key run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts - name: remove last iso - run: sshpass -p "${{ secrets.SSH_PASS }}" ssh root@${{ secrets.SSH_HOST }} rm -rf /srv/http/test/Parchlinux-test-latest.iso + run: sshpass -p "${{ secrets.SSH_PASS }}" ssh "root@$HOST" "rm -rf /srv/http/test/Parchlinux-test-latest.iso" - name: rename iso run: mv "$(ls out/*.iso)" out/Parchlinux-test-latest.iso - name: upload iso to host