Skip to content

Commit

Permalink
update testing actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyucode committed Nov 28, 2024
1 parent affb922 commit 80e32e7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/issue-40.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,26 @@ jobs:
with:
fetch-depth: 2

- name: SFTP uploader
uses: wangyucode/[email protected].3
- name: SFTP uploader v2.0.4
uses: wangyucode/[email protected].4
with:
host: ${{ secrets.HOST }}
port: 22
username: ${{ secrets.USERNAME }}
privateKey: ${{ secrets.SERVER_KEY }}
localDir: "."
remoteDir: "/tmp/test/"
dryRun: false
exclude: "**/.git,**/node_modules"
exclude: ".git,node_modules,not-remove,dist/*,*.json"

- name: SFTP uploader
uses: wangyucode/[email protected].4
- name: SFTP uploader v2.0.3
uses: wangyucode/[email protected].3
with:
host: ${{ secrets.HOST }}
port: 22
username: ${{ secrets.USERNAME }}
privateKey: ${{ secrets.SERVER_KEY }}
localDir: "."
remoteDir: "/tmp/test/"
dryRun: false
exclude: ".git,node_modules,not-remove"
exclude: "**/.git,**/node_modules,**/not-remove,**/dist/*,**/*.json"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ this is a github action script for upload files to server via SFTP protocol.
localDir: 'dist', # Required, Absolute or relative to cwd.
remoteDir: '/path/to/dest' # Required, Absolute path only.
dryRun: false # Optional. Default to false.
exclude: 'node_modules/,**/*.spec.ts' # Optional. exclude patterns (glob) like .gitignore, use ',' to split, Default to ''.
exclude: 'node_modules/,**/*.spec.ts' # Optional. exclude patterns (glob), working on both server-side and client-side like .gitignore, use ',' to split, Default to ''.
forceUpload: false # Optional, Force uploading all files, Default to false(upload only newer files).
removeExtraFilesOnServer: false # Optional, Remove extra files on server. Default to false.
```
Expand Down
2 changes: 1 addition & 1 deletion lib/deployer.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class Deployer {
const relativePath = this.getRelativePath(filePath, true);

if (this.isIgnoreFile(`${relativePath}${file.type === 'd' ? '/' : ''}`)) {
console.log(`ignoring remote ${relativePath}`);
console.log(`ignored remote ${relativePath}`);
continue;
}

Expand Down

0 comments on commit 80e32e7

Please sign in to comment.