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:
wl committed 2024-12-31 11:39:56 +08:00
1 parent 89e97d73f9
commit 896dcfc555
5 files changed
+169 -84

No files matched your search

+9
View File
@@ -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'