Chore(runner): fixes to zipped upload

This commit is contained in:
Pieter Vander Vennet 2024-12-09 22:19:07 +01:00
parent fe0f6d1cbf
commit 8141f77076

View file

@ -56,13 +56,15 @@ jobs:
shell: bash shell: bash
- name: Zipping dist file - 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 - name: uploading file
run: scp ${{ github.ref_name }}.zip hetzner:/root/staging/ run: scp ${{ github.ref_name }}.zip hetzner:/root/staging/
- name: unzipping remote file - 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"