mirror of
https://github.com/wlixcc/SFTP-Deploy-Action.git
synced 2026-10-02 01:21:30 +00:00
feat: Add rsync filtering and optimize SFTP deployment process
- Introduced rsync support with customizable `rsyncArgs` for file filtering. - Ensured only filtered content is uploaded, avoiding `filtered_upload` folder inclusion. - Updated documentation to reflect the latest changes and usage examples.
This commit is contained in:
1 parent
89e97d73f9
commit
896dcfc555
5 files changed
+169
-84
No files matched your search
@@ -36,6 +36,13 @@ inputs:
|
||||
password:
|
||||
description: "SSH passsword,If a password is set, the secret key pair is ignored"
|
||||
required: false
|
||||
rsyncArgs:
|
||||
description: "Additional arguments for the rsync command.
|
||||
You can use this parameter to customize the rsync behavior, such as excluding files or directories.
|
||||
Example: '--exclude=node_modules --exclude=.git --exclude=*.log'.
|
||||
If set, these arguments will be passed directly to the rsync command."
|
||||
required: false
|
||||
default: ""
|
||||
|
||||
|
||||
runs:
|
||||
@@ -52,6 +59,8 @@ runs:
|
||||
- ${{ inputs.sftpArgs }}
|
||||
- ${{ inputs.delete_remote_files }}
|
||||
- ${{ inputs.password }}
|
||||
- ${{ inputs.rsyncArgs }}
|
||||
|
||||
|
||||
branding:
|
||||
icon: 'upload-cloud'
|
||||
|
||||
Reference in new issue
Block a user