mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-23 10:32:29 +03:00
ci
This commit is contained in:
parent
3bc387b1d9
commit
bd713f8e07
@ -3,14 +3,21 @@ const builder = require('electron-builder').build
|
||||
const vars = require('./vars')
|
||||
|
||||
const isTag = (process.env.GITHUB_REF || '').startsWith('refs/tags/')
|
||||
const isCI = !!process.env.GITHUB_REF
|
||||
|
||||
builder({
|
||||
dir: true,
|
||||
linux: ['snap', 'deb', 'rpm', 'tar.gz'],
|
||||
config: {
|
||||
publish: isTag ? [
|
||||
{ provider: 'bintray', component: 'main' },
|
||||
{ provider: 'github' },
|
||||
] : [
|
||||
{ provider: 'bintray', component: 'nightly' },
|
||||
],
|
||||
extraMetadata: {
|
||||
version: vars.version,
|
||||
},
|
||||
},
|
||||
publish: isTag ? 'always' : 'onTag',
|
||||
publish: isCI ? 'always' : 'onTag',
|
||||
}).catch(() => process.exit(1))
|
||||
|
@ -3,14 +3,21 @@ const builder = require('electron-builder').build
|
||||
const vars = require('./vars')
|
||||
|
||||
const isTag = (process.env.GITHUB_REF || '').startsWith('refs/tags/')
|
||||
const isCI = !!process.env.GITHUB_REF
|
||||
|
||||
builder({
|
||||
dir: true,
|
||||
mac: ['pkg', 'zip'],
|
||||
config: {
|
||||
publish: isTag ? [
|
||||
{ provider: 'bintray', component: 'main' },
|
||||
{ provider: 'github' },
|
||||
] : [
|
||||
{ provider: 'bintray', component: 'nightly' },
|
||||
],
|
||||
extraMetadata: {
|
||||
version: vars.version,
|
||||
},
|
||||
},
|
||||
publish: isTag ? 'always' : 'onTag',
|
||||
publish: isCI ? 'always' : 'onTag',
|
||||
}).catch(() => process.exit(1))
|
||||
|
@ -3,14 +3,21 @@ const builder = require('electron-builder').build
|
||||
const vars = require('./vars')
|
||||
|
||||
const isTag = (process.env.GITHUB_REF || '').startsWith('refs/tags/')
|
||||
const isCI = !!process.env.GITHUB_REF
|
||||
|
||||
builder({
|
||||
dir: true,
|
||||
win: ['nsis', 'portable'],
|
||||
config: {
|
||||
publish: isTag ? [
|
||||
{ provider: 'bintray', component: 'main' },
|
||||
{ provider: 'github' },
|
||||
] : [
|
||||
{ provider: 'bintray', component: 'nightly' },
|
||||
],
|
||||
extraMetadata: {
|
||||
version: vars.version,
|
||||
},
|
||||
},
|
||||
publish: isTag ? 'always' : 'onTag',
|
||||
publish: isCI ? 'always' : 'onTag',
|
||||
}).catch(() => process.exit(1))
|
||||
|
Loading…
Reference in New Issue
Block a user