mirror of
https://github.com/ChenjxJames/SFTP-Deploy-Action.git
synced 2025-09-11 13:08:02 +08:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
9289a89a12 | ||
|
4404f4759c |
@@ -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:
|
||||
|
@@ -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'
|
||||
|
||||
ssh -o StrictHostKeyChecking=no -p $3 -i $TEMP_SSH_PRIVATE_KEY_FILE $1@$2 mkdir -p $6
|
||||
|
||||
echo 'sftp start'
|
||||
# create a temporary file containing sftp commands
|
||||
printf "%s" "put -r $5 $6" >$TEMP_SFTP_FILE
|
||||
|
Reference in New Issue
Block a user