mirror of
https://github.com/Eugeny/tabby.git
synced 2024-09-11 04:43:03 +03:00
Publish only if GH_TOKEN || GITHUB_TOKEN
This commit is contained in:
parent
b5c2b6de5d
commit
16b338729f
@ -16,12 +16,12 @@ builder({
|
||||
extraMetadata: {
|
||||
version: vars.version,
|
||||
},
|
||||
publish: {
|
||||
provider: 'github',
|
||||
channel: `latest-${process.arch}`,
|
||||
},
|
||||
},
|
||||
publish: isTag ? 'always' : 'onTagOrDraft',
|
||||
publish: process.env.GH_TOKEN || process.env.GITHUB_TOKEN ? {
|
||||
provider: 'github',
|
||||
channel: `latest-${process.env.ARCH}`,
|
||||
} : undefined,
|
||||
},
|
||||
publish: ( process.env.GH_TOKEN || process.env.GITHUB_TOKEN ) ? ( isTag ? 'always' : 'onTagOrDraft' ) : 'never',
|
||||
}).catch(e => {
|
||||
console.error(e)
|
||||
process.exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user