build: revert old GitHub Actions work in 32-x-y (#42670)

build: revert old GitHub Actions work
This commit is contained in:
Keeley Hammond 2024-06-26 12:36:32 -07:00 committed by GitHub
parent 8454fc2858
commit 13be04d0bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 1 additions and 1191 deletions

View file

@ -127,23 +127,7 @@ async function createRelease (branchToTarget, isBeta) {
process.exit(1);
});
const ghaTestRelease = await octokit.repos.createRelease({
owner: 'electron',
repo: 'test-releases',
tag_name: newVersion,
draft: true,
name: `electron ${newVersion}`,
body: releaseBody,
prerelease: releaseIsPrelease,
target_commitish: newVersion.includes('nightly') ? 'main' : branchToTarget
}).catch(err => {
console.log(`${fail} Error creating new GHA test release: `, err);
});
console.log(`Release has been created with id: ${release.data.id}.`);
if (ghaTestRelease && ghaTestRelease.data) {
console.log(`Test Release has been created with id: ${ghaTestRelease.data.id}.`);
}
console.log(`${pass} Draft release for ${newVersion} successful.`);
}