Scripts: deploy hosted now actually now uses the '/tmp/' directory

This commit is contained in:
Pieter Vander Vennet 2025-03-17 01:16:30 +01:00
parent c0f7de25fd
commit c3d905b26a

View file

@ -52,11 +52,11 @@ jobs:
- name: Zipping dist file
run: |
mv dist ${{ github.ref_name }}
zip ${{ github.ref_name }}.zip -r ${{ github.ref_name }}/*
mv dist /tmp/${{ github.ref_name }}
zip /tmp/${{ github.ref_name }}.zip -r /tmp/${{ github.ref_name }}/*
- name: uploading file
run: scp ${{ github.ref_name }}.zip hetzner:/root/staging/
run: scp /tmp/${{ github.ref_name }}.zip hetzner:/root/staging/
- name: unzipping remote file
run: ssh hetzner "cd /root/staging && rm -rf ${{ github.ref_name }} && 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"