mirror of
https://github.com/wlixcc/SFTP-Deploy-Action.git
synced 2026-09-23 13:18:32 +00:00
- 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.
27 lines
721 B
YAML
27 lines
721 B
YAML
name: Continuous Deploy
|
|
on: [push]
|
|
|
|
jobs:
|
|
deploy_job:
|
|
runs-on: ubuntu-latest
|
|
name: sftp
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: deploy file to server
|
|
uses: ./ # Uses an action in the root directory
|
|
with:
|
|
username: '${{ secrets.USER }}'
|
|
server: '${{ secrets.SERVER_IP }}'
|
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
local_path: './*'
|
|
remote_path: '/tmp/testAction'
|
|
sftpArgs: '-o ConnectTimeout=5'
|
|
rsyncArgs: '--exclude *.yml'
|
|
|
|
|
|
# sftp_only: true
|
|
# password: ${{secrets.SSH_PASSWORD}}
|
|
# delete_remote_files: true
|