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,11 +1,15 @@
|
||||
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'
|
||||
? [
|
||||
[
|
||||
'@semantic-release/exec',
|
||||
{
|
||||
publishCmd: 'bun run scripts/trigger-portainer-webhook.ts',
|
||||
},
|
||||
],
|
||||
]
|
||||
: [
|
||||
[
|
||||
'@codedependant/semantic-release-docker',
|
||||
{
|
||||
@@ -20,12 +24,5 @@ export default {
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
'@semantic-release/exec',
|
||||
{
|
||||
publishCmd: 'bun run scripts/trigger-portainer-webhook.ts',
|
||||
},
|
||||
],
|
||||
]
|
||||
: [],
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user