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

@@ -49,6 +49,17 @@ jobs:
- name: Build and release
env:
RELEASE_WORKFLOW_STEP: release
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
run: bunx multi-semantic-release
# We call multi-semantic-release twice to publish in a different step
# An environment variable determines which plugins in the config to run
- name: Trigger Portainer webhooks
if: github.ref == 'refs/heads/main'
env:
RELEASE_WORKFLOW_STEP: publish
DOCKER_REGISTRY_USER: ${{ github.actor }}
DOCKER_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ github.actor }}