mirror of
https://gitee.com/jack_whh/SFTP-Deploy-Action.git
synced 2026-03-09 23:12:55 +08:00
24 lines
644 B
YAML
24 lines
644 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: 'wl'
|
|
server: '${{ secrets.MAC_IP }}'
|
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
local_path: './*'
|
|
remote_path: '/Users/wl/Downloads/t/a'
|
|
sftpArgs: '-o ConnectTimeout=5'
|
|
# sftp_only: true
|
|
password: ${{secrets.SSH_PASSWORD}}
|
|
# delete_remote_files: true
|