From 8141f770762ee56189759568b35e5cca189defdf Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 9 Dec 2024 22:19:07 +0100 Subject: [PATCH] Chore(runner): fixes to zipped upload --- .github/workflows/deploy_hosted.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_hosted.yml b/.github/workflows/deploy_hosted.yml index 1cff93bc6..f036a4112 100644 --- a/.github/workflows/deploy_hosted.yml +++ b/.github/workflows/deploy_hosted.yml @@ -56,13 +56,15 @@ jobs: shell: bash - name: Zipping dist file - run: zip ${{ github.ref_name }}.zip -r dist/ + run: | + mv dist ${{ github.ref_name }} + zip ${{ github.ref_name }}.zip -r ${{ github.ref_name }}/* - name: uploading file run: scp ${{ github.ref_name }}.zip hetzner:/root/staging/ - name: unzipping remote file - run: ssh hetzner "cd /root/staging && unzip ${{ github.ref_name }}.zip && rm -rf /root/public/${{ github.ref_name }} && mv /root/staging/${{ github.ref_name }}/ /root/public/" + run: ssh hetzner "cd /root/staging && unzip ${{ github.ref_name }}.zip && rm -rf /root/public/${{ github.ref_name }} && mv /root/staging/${{ github.ref_name }}/ /root/public/ && rm ${{ github.ref_name }}.zip"