Skip to content

Commit a25ea57

Browse files
committed
Remove whitespace and publish from version release
1 parent 9fff914 commit a25ea57

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,4 @@ jobs:
126126
DIGEST: ${{ steps.build-and-push.outputs.digest }}
127127
# This step uses the identity token to provision an ephemeral certificate
128128
# against the sigstore community Fulcio instance.
129-
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
130-
129+
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}

.github/workflows/registry-releaser.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Publish to MCP Registry
22

33
on:
4-
repository_dispatch:
5-
types: [docker-published] # Triggered after Docker image is published
4+
push:
5+
tags: ["v*"] # Triggers on version tags like v1.0.0
66
workflow_dispatch: # Allow manual triggering
77

88
jobs:
@@ -23,9 +23,7 @@ jobs:
2323

2424
- name: Fetch tags
2525
run: |
26-
if [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then
27-
echo "Triggered by docker-published event for tag: ${{ github.event.client_payload.tag }}"
28-
elif [[ "${{ github.ref_type }}" != "tag" ]]; then
26+
if [[ "${{ github.ref_type }}" != "tag" ]]; then
2927
git fetch --tags
3028
else
3129
echo "Skipping tag fetch - already on tag ${{ github.ref_name }}"
@@ -58,10 +56,7 @@ jobs:
5856
5957
- name: Update server.json version
6058
run: |
61-
if [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then
62-
TAG_VERSION=$(echo "${{ github.event.client_payload.tag }}" | sed 's/^v//')
63-
echo "Using tag from dispatch: ${{ github.event.client_payload.tag }}"
64-
elif [[ "${{ github.ref_type }}" == "tag" ]]; then
59+
if [[ "${{ github.ref_type }}" == "tag" ]]; then
6560
TAG_VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//')
6661
else
6762
LATEST_TAG=$(git tag --sort=-version:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+(-.*)?$' | head -n 1)

0 commit comments

Comments
 (0)