diff --git a/.github/workflows/deploy_hosted.yml b/.github/workflows/deploy_hosted.yml index 81aed902f..2829dc043 100644 --- a/.github/workflows/deploy_hosted.yml +++ b/.github/workflows/deploy_hosted.yml @@ -50,7 +50,7 @@ jobs: - name: Upload artefact run: | - ssh hetzner "mkdir /root/staging/${{ github.ref_name }}" + ssh hetzner "mkdir -p /root/staging/${{ github.ref_name }}" scp -r dist/* hetzner:/root/staging/${{ github.ref_name }}/ ssh hetzner "rm -rf /root/public/${{ github.ref_name }} && mv /root/staging/${{ github.ref_name }}/ /root/public/"