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
|
@ -45,6 +45,12 @@ let npmTag = '';
|
|||
|
||||
const currentElectronVersion = getElectronVersion();
|
||||
const isNightlyElectronVersion = currentElectronVersion.includes('nightly');
|
||||
const targetRepo = getRepo();
|
||||
|
||||
function getRepo () {
|
||||
if (process.env.IS_GHA_RELEASE) return 'test-releases';
|
||||
return isNightlyElectronVersion ? 'nightlies' : 'electron';
|
||||
}
|
||||
|
||||
new Promise((resolve, reject) => {
|
||||
temp.mkdir('electron-npm', (err, dirPath) => {
|
||||
|
@ -78,7 +84,7 @@ new Promise((resolve, reject) => {
|
|||
|
||||
return octokit.repos.listReleases({
|
||||
owner: 'electron',
|
||||
repo: isNightlyElectronVersion ? 'nightlies' : 'electron'
|
||||
repo: targetRepo
|
||||
});
|
||||
})
|
||||
.then((releases) => {
|
||||
|
@ -98,7 +104,7 @@ new Promise((resolve, reject) => {
|
|||
}
|
||||
|
||||
const typingsContent = await getAssetContents(
|
||||
isNightlyElectronVersion ? 'nightlies' : 'electron',
|
||||
targetRepo,
|
||||
tsdAsset.id
|
||||
);
|
||||
|
||||
|
@ -113,7 +119,7 @@ new Promise((resolve, reject) => {
|
|||
}
|
||||
|
||||
const checksumsContent = await getAssetContents(
|
||||
isNightlyElectronVersion ? 'nightlies' : 'electron',
|
||||
targetRepo,
|
||||
checksumsAsset.id
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue