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
- name: Extract archive
run: |
#scp -i ~/.ssh/id_deployer ./website.tar ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}}:${{SCP_DEST}}
ssh ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}} "rm -r ${{WEB_DIR}}/*"
ssh ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}} "tar -xf ${{SCP_DEST}}/website.tar --directory ${{WEB_DIR}}/"
ssh ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}} "rm ${{SCP_DEST}}/website.tar"
uses: https://github.com/appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: |
rm -r ${{WEB_DIR}}/*"
tar -xvf /tmp/website.tar --directory ${{WEB_DIR}}/"
rm /tmp/website.tar"