Skip to content

Commit f9d2ffd

Browse files
committed
fix release task
1 parent 66f1fd3 commit f9d2ffd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gulp.d/tasks/release.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function versionBundle (bundleFile, tagName) {
5353
)
5454
}
5555

56-
module.exports = (dest, bundleName, owner, repo, token, updateBranch) => async (done) => {
56+
module.exports = (dest, bundleName, owner, repo, token, updateBranch) => async () => {
5757
const octokit = new Octokit({ auth: `token ${token}` })
5858
let branchName = process.env.GIT_BRANCH || 'master'
5959
if (branchName.startsWith('origin/')) branchName = branchName.substr(7)
@@ -94,7 +94,7 @@ module.exports = (dest, bundleName, owner, repo, token, updateBranch) => async (
9494
.then((result) => result.data.upload_url)
9595
await octokit.repos.uploadReleaseAsset({
9696
url: uploadUrl,
97-
file: fs.createReadStream(bundleFile),
97+
data: fs.createReadStream(bundleFile),
9898
name: bundleFileBasename,
9999
headers: {
100100
'content-length': (await fs.stat(bundleFile)).size,

0 commit comments

Comments
 (0)