From 221c13679a90b688867be4a83f43614cff3a8b93 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 6 Dec 2024 02:34:40 +0100 Subject: [PATCH] Fix: attempt to get runners working --- .github/workflows/deploy_hosted.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy_hosted.yml b/.github/workflows/deploy_hosted.yml index f524a94068..218c4f7b4f 100644 --- a/.github/workflows/deploy_hosted.yml +++ b/.github/workflows/deploy_hosted.yml @@ -49,15 +49,10 @@ jobs: shell: bash - name: Upload artefact - env: - SSH_KEY: ${{ secrets.HETZNER_KEY }} run: | - mkdir .ssh - echo -e $SSH_KEY > .ssh/id_ed25519 - chmod 500 .ssh/id_ed25519 - ssh -i .ssh/id_ed25519 root@hosted.mapcomplete.org "mkdir /root/staging/${{ github.ref_name }}" - scp -r -i .ssh/id_ed25519 dist/* root@hosted.mapcomplete.org:/root/staging/${{ github.ref_name }} - ssh -i .ssh/id_ed25519 root@hosted.mapcomplete.org "rm -rf /root/public/${{ github.ref_name }} && mv /root/staging/${{ github.ref_name }}/ /root/public/" + ssh hetzner "mkdir /root/staging/${{ github.ref_name }}" + scp hetzner:/root/staging/${{ github.ref_name }} + ssh hetzner "rm -rf /root/public/${{ github.ref_name }} && mv /root/staging/${{ github.ref_name }}/ /root/public/"