pull/5370/head
bunsenstraat 8 months ago
parent b174a81588
commit f521bec138
  1. 24
      apps/remix-ide/ci/update_desktop_release_assets.ts

@ -26,16 +26,20 @@ async function getAllReleases() {
async function uploadReleaseAsset(release, name, file) {
const upload_url = release.upload_url
console.log(`Uploading ${name} to ${upload_url}`)
octokit.request({
method: "POST",
url: upload_url,
headers: {
"content-type": "text/plain",
},
data: fs.readFileSync(file),
name,
label: name
});
if (fs.existsSync(file)) {
octokit.request({
method: "POST",
url: upload_url,
headers: {
"content-type": "text/plain",
},
data: fs.readFileSync(file),
name,
label: name
});
}else{
console.log(`File ${file} does not exist. Skipping...`)
}
}
async function getVersionFromPackageJson() {

Loading…
Cancel
Save