Skip to content

Commit

Permalink
readded github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Oct 1, 2022
1 parent c410758 commit 50392b5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
8 changes: 7 additions & 1 deletion scripts/build-linux.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ builder({
extraMetadata: {
version: vars.version,
},
publish: process.env.KEYGEN_TOKEN ? vars.keygenConfig : undefined,
publish: process.env.KEYGEN_TOKEN ? [
vars.keygenConfig,
{
provider: 'github',
channel: `latest-${process.env.ARCH}`,
},
] : undefined,
},
publish: process.env.KEYGEN_TOKEN ? isTag ? 'always' : 'onTagOrDraft' : 'never',
}).catch(e => {
Expand Down
14 changes: 7 additions & 7 deletions scripts/build-macos.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ builder({
identity: !process.env.CI || process.env.CSC_LINK ? undefined : null,
},
npmRebuild: process.env.ARCH !== 'arm64',
publish: process.env.KEYGEN_TOKEN ? {
product: {
arm64: '98fbadee-c707-4cd6-9d99-56683595a846',
x86_64: 'f5a48841-d5b8-4b7b-aaa7-cf5bffd36461',
}[process.env.ARCH],
...vars.keygenConfig,
} : undefined,
publish: process.env.KEYGEN_TOKEN ? [
vars.keygenConfig,
{
provider: 'github',
channel: `latest-${process.env.ARCH}`,
},
] : undefined,
},
publish: process.env.KEYGEN_TOKEN ? isTag ? 'always' : 'onTagOrDraft' : 'never',
}).catch(e => {
Expand Down
8 changes: 7 additions & 1 deletion scripts/build-windows.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ builder({
extraMetadata: {
version: vars.version,
},
publish: process.env.KEYGEN_TOKEN ? vars.keygenConfig : undefined,
publish: process.env.KEYGEN_TOKEN ? [
vars.keygenConfig,
{
provider: 'github',
channel: `latest-${process.env.ARCH}`,
},
] : undefined,
},
publish: process.env.KEYGEN_TOKEN ? isTag ? 'always' : 'onTagOrDraft' : 'never',
}).catch(e => {
Expand Down

0 comments on commit 50392b5

Please sign in to comment.