2 Commits

Author SHA1 Message Date
ChenjxJames
9289a89a12 docs: update name 2021-11-14 10:52:58 +08:00
ChenjxJames
4404f4759c feat: remove ssh 2021-11-14 10:18:38 +08:00
2 changed files with 1 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
# action.yml # action.yml
name: 'SFTP Deploy' name: 'SFTP Deploy No SSH'
description: 'Deploy file to your server use sftp & ssh private key' description: 'Deploy file to your server use sftp & ssh private key'
inputs: inputs:
username: username:

View File

@@ -12,10 +12,6 @@ printf "%s" "$4" >$TEMP_SSH_PRIVATE_KEY_FILE
# avoid Permissions too open # avoid Permissions too open
chmod 600 $TEMP_SSH_PRIVATE_KEY_FILE chmod 600 $TEMP_SSH_PRIVATE_KEY_FILE
echo 'ssh start'
ssh -o StrictHostKeyChecking=no -p $3 -i $TEMP_SSH_PRIVATE_KEY_FILE $1@$2 mkdir -p $6
echo 'sftp start' echo 'sftp start'
# create a temporary file containing sftp commands # create a temporary file containing sftp commands
printf "%s" "put -r $5 $6" >$TEMP_SFTP_FILE printf "%s" "put -r $5 $6" >$TEMP_SFTP_FILE