4 Commits
1.1 ... v1.3.1

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
wl
28d6168ebf 1. fix mkdir issue 2021-03-31 12:50:09 +08:00
wl
f19d10cf6b 1. fix mkdir issue 2021-03-31 12:06:37 +08:00
2 changed files with 1 additions and 5 deletions

View File

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

View File

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