This commit is contained in:
parent
01a802ee23
commit
e8a92a4fce
1 changed files with 2 additions and 2 deletions
|
@ -55,6 +55,6 @@ jobs:
|
||||||
echo "test content" > test.txt
|
echo "test content" > test.txt
|
||||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /tmp/ssh_key
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /tmp/ssh_key
|
||||||
chmod 600 /tmp/ssh_key
|
chmod 600 /tmp/ssh_key
|
||||||
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no thomas@116.203.113.18 "rm -rf /var/www/systemsobscure.blog/*"
|
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no thomas@116.203.113.18 "rm -rf /var/www/systemsobscure.blog && mkdir -p /var/www/systemsobscure.blog"
|
||||||
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no test.txt thomas@YOUR_VPS_IP:/var/www/systemsobscure.blog/
|
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no test.txt thomas@116.203.113.18:/var/www/systemsobscure.blog/
|
||||||
rm /tmp/ssh_key
|
rm /tmp/ssh_key
|
||||||
|
|
Loading…
Add table
Reference in a new issue