forked from MapComplete/MapComplete
Actions: remove directory before unzipping to deal with eventual leftovers
This commit is contained in:
parent
cf19d9e3f1
commit
d745671e36
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ jobs:
|
|||
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/ && rm ${{ github.ref_name }}.zip"
|
||||
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"
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue