mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
ci(release): release and trigger portainer webhooks in different steps
This commit is contained in:
@@ -1,25 +1,7 @@
|
||||
import { $ } from 'execa'
|
||||
|
||||
const branch = (await $`git rev-parse --abbrev-ref HEAD`).stdout.trim()
|
||||
|
||||
export default {
|
||||
plugins:
|
||||
branch === 'main'
|
||||
process.env.RELEASE_WORKFLOW_STEP === 'publish'
|
||||
? [
|
||||
[
|
||||
'@codedependant/semantic-release-docker',
|
||||
{
|
||||
dockerImage: 'revanced-bot-websocket-api',
|
||||
dockerRegistry: 'ghcr.io',
|
||||
dockerProject: 'revanced',
|
||||
dockerContext: '../..',
|
||||
dockerPlatform: ['linux/amd64', 'linux/arm64'],
|
||||
dockerArgs: {
|
||||
GITHUB_ACTOR: null,
|
||||
GITHUB_TOKEN: null,
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
'@semantic-release/exec',
|
||||
{
|
||||
@@ -27,5 +9,18 @@ export default {
|
||||
},
|
||||
],
|
||||
]
|
||||
: [],
|
||||
: [
|
||||
'@codedependant/semantic-release-docker',
|
||||
{
|
||||
dockerImage: 'revanced-bot-websocket-api',
|
||||
dockerRegistry: 'ghcr.io',
|
||||
dockerProject: 'revanced',
|
||||
dockerContext: '../..',
|
||||
dockerPlatform: ['linux/amd64', 'linux/arm64'],
|
||||
dockerArgs: {
|
||||
GITHUB_ACTOR: null,
|
||||
GITHUB_TOKEN: null,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user