Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
fix(typo): 修复忽略 github 文件的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
binggg committed May 6, 2020
1 parent f47b524 commit 4d84eaf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

Github 项目静态文件的路径。 默认值 `build`

如果需要上传项目根目录,可以填写 `./`, 不过需要注意忽略不必要的文件,默认情况下会忽略 `.git`,`.github`,`node_modules`

### `staticDestPath`

静态资源部署到云开发静态托管的路径,默认为根目录。
Expand All @@ -46,7 +48,7 @@ Github 项目静态文件的路径。 默认值 `build`

`v.1.1.0` 版本开始支持

静态资源部署时忽略的文件路径,多个路径可以用,隔开,默认值 `.git,github,node_modules`
静态资源部署时忽略的文件路径,支持通配符,例如`node_modules/**`, 多个路径可以用,隔开,默认值 `.git,.github,node_modules`

## 参考示例

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ inputs:
staticIgnore:
description: "静态资源:部署时忽略的文件路径,多个路径用,隔开"
required: false
default: ".git,github,node_modules"
default: ".git,.github,node_modules"
runs:
using: "node12"
main: "dist/index.js"
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ main({
envId: core.getInput("envId"),
staticSrcPath: core.getInput("staticSrcPath"),
staticDestPath: core.getInput("staticDestPath"),
staticIgnore: core.getInput("staticIgnore") || ".git,github,node_modules",
staticIgnore: core.getInput("staticIgnore") || ".git,.github,node_modules",
}).catch((error) => core.setFailed(error.message));

0 comments on commit 4d84eaf

Please sign in to comment.