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