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