This commit is contained in:
parent
02234dc71e
commit
9eef32f85c
@ -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"
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user