Skip to content

Commit

Permalink
action is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyucode committed Oct 27, 2020
1 parent 3742654 commit 68bfe19
Show file tree
Hide file tree
Showing 590 changed files with 156,565 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
# sftp-upload-action
sftp upload using sftp-sync-deploy

this is a github action script for upload files to server via SFTP protocol.

it using [sftp-sync-deploy](https://www.npmjs.com/package/sftp-sync-deploy)


## input

```
host: 'example.com', // Required.
port: 22, // Optional, Default to 22.
username: 'user', // Required.
password: 'password', // Optional.
localDir: 'dist', // Required, Absolute or relative to cwd.
remoteDir: '/path/to/dest' // Required, Absolute path only.
dryRun: false // Optional. Default to false.
```

## useful link

<https://www.npmjs.com/package/sftp-sync-deploy>
<https://github.com/dobbydog/sftp-sync-deploy>
23 changes: 23 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'SFTP uploader'
description: 'upload files to server via SFTP'
inputs:
host:
required: true
port:
required: false
default: 22
username:
required: false
default: 'root'
password:
required: true
localDir:
required: true
remoteDir:
required: true
dryRun:
required: false
default: false
runs:
using: 'node12'
main: 'sftp.js'
15 changes: 15 additions & 0 deletions node_modules/.bin/semver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions node_modules/.bin/semver.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions node_modules/@actions/core/LICENSE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

147 changes: 147 additions & 0 deletions node_modules/@actions/core/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions node_modules/@actions/core/lib/command.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 79 additions & 0 deletions node_modules/@actions/core/lib/command.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/@actions/core/lib/command.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 68bfe19

Please sign in to comment.