Scripts: use relative path in upload action

This commit is contained in:
Pieter Vander Vennet 2025-04-27 02:04:44 +02:00
parent 82c77de2ea
commit 19ba6adf8a

View file

@ -15,7 +15,8 @@ runs:
shell: bash
run: |
F=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16)
zip $F.zip -r ${{ inputs.src }}/*
cd ${{ inputs.src }}
zip $F.zip -r ./*
scp $F.zip hetzner:${{ inputs.dst }}/$F.zip
ssh hetzner "cd ${{ inputs.dst }} && unzip $F.zip && rm $F.zip"