ci(release): release and trigger portainer webhooks in different steps

This commit is contained in:
PalmDevs
2024-07-20 01:12:34 +07:00
parent a20f8345b7
commit f1a169fb6b
5 changed files with 88 additions and 88 deletions

View File

@@ -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,
},
},
],
}