attempt #932487
All checks were successful
/ deploy (push) Successful in 46s

This commit is contained in:
Mans Ziesel 2024-04-27 20:05:13 +02:00
parent 02234dc71e
commit 9eef32f85c

View File

@ -55,11 +55,15 @@ jobs:
overwrite: true overwrite: true
- name: Extract archive - name: Extract archive
run: | uses: https://github.com/appleboy/ssh-action@master
#scp -i ~/.ssh/id_deployer ./website.tar ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}}:${{SCP_DEST}} with:
ssh ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}} "rm -r ${{WEB_DIR}}/*" host: ${{ secrets.SSH_HOST }}
ssh ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}} "tar -xf ${{SCP_DEST}}/website.tar --directory ${{WEB_DIR}}/" username: ${{ secrets.SSH_USER }}
ssh ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}} "rm ${{SCP_DEST}}/website.tar" key: ${{ secrets.SSH_KEY }}
script: |
rm -r ${{WEB_DIR}}/*"
tar -xvf /tmp/website.tar --directory ${{WEB_DIR}}/"
rm /tmp/website.tar"