Feat/upload (#34)

* feat: warn file invalid when upload

* build: update release shell

* update emoji

* build: compile main.js
This commit is contained in:
纪阳
2019-12-29 06:07:38 +08:00
committed by Doug Tangren
parent d651ef48cb
commit 7a7960d4c7
3 changed files with 11 additions and 3 deletions

View File

@ -31,7 +31,11 @@ async function run() {
});
let rel = await release(config, new GitHubReleaser(gh));
if (config.input_files) {
paths(config.input_files).forEach(async path => {
const files = paths(config.input_files)
if (files.length == 0) {
console.warn(`🤔 ${config.input_files} not include valid file.`)
}
files.forEach(async path => {
await upload(gh, rel.upload_url, path);
});
}