diff --git a/README.md b/README.md index e5b157b..3201a15 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,12 @@ 上传需要的release upload url, 如果没有提供,则尝试从 release event中获取 +## Env +### GITHUB_TOKEN + +### ASSETS_UPLOAD_DISABLED +不再上传 + ## Example usage ```yaml diff --git a/build.sh b/build.sh index 6b157c7..c3c223a 100755 --- a/build.sh +++ b/build.sh @@ -96,6 +96,11 @@ function upload_octet() { return $? } +if [[ -n "${ASSETS_UPLOAD_DISABLED-}" ]];then + echo "禁用了上传,pass" + exit 0 +fi + # 打包完上传 for i in *;do # 因为可能是md5已被上传了