build: add GitHub Actions publishing pipeline for macOS (#42236)
* build: add publishing workflow for GHActions * build: add test repo/bucket for uploads * build: clean up conditionals, add macos-14-large, review comments * build: remove host_cpu var from GCLIENT_EXTRA_ARGS
This commit is contained in:
parent
4436ce53bc
commit
361b37592a
12 changed files with 341 additions and 83 deletions
|
@ -11,11 +11,17 @@ if (process.argv.length < 3) {
|
|||
}
|
||||
|
||||
const version = process.argv[2];
|
||||
const targetRepo = findRepo();
|
||||
|
||||
function findRepo () {
|
||||
if (process.env.IS_GHA_RELEASE) return 'test-releases';
|
||||
else return version.indexOf('nightly') > 0 ? 'nightlies' : 'electron';
|
||||
}
|
||||
|
||||
async function findRelease () {
|
||||
const releases = await octokit.repos.listReleases({
|
||||
owner: 'electron',
|
||||
repo: version.indexOf('nightly') > 0 ? 'nightlies' : 'electron'
|
||||
repo: targetRepo
|
||||
});
|
||||
|
||||
const targetRelease = releases.data.find(release => release.tag_name === version);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue