Skip to content

Commit

Permalink
feat: 添加变量,可以禁用上传
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuler committed Jul 29, 2020
1 parent 8894141 commit ca754e8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@

上传需要的release upload url, 如果没有提供,则尝试从 release event中获取

## Env
### GITHUB_TOKEN

### ASSETS_UPLOAD_DISABLED
不再上传

## Example usage

```yaml
Expand Down
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ function upload_octet() {
return $?
}

if [[ -n "${ASSETS_UPLOAD_DISABLED-}" ]];then
echo "禁用了上传,pass"
exit 0
fi

# 打包完上传
for i in *;do
# 因为可能是md5已被上传了
Expand Down

0 comments on commit ca754e8

Please sign in to comment.