mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
32 lines
1.0 KiB
JavaScript
32 lines
1.0 KiB
JavaScript
import { $ } from 'execa'
|
|
|
|
const branch = (await $`git rev-parse --abbrev-ref HEAD`).stdout.trim()
|
|
|
|
export default {
|
|
plugins:
|
|
branch === 'main'
|
|
? [
|
|
[
|
|
'@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',
|
|
{
|
|
publishCmd: 'bun run scripts/trigger-portainer-webhook.ts',
|
|
},
|
|
],
|
|
]
|
|
: [],
|
|
}
|