Skip to content

Commit ccbc9bd

Browse files
committed
ci(publish): trigger workflow on version tags instead of releases
1 parent 34541b5 commit ccbc9bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish-mcp.yml

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

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- 'v*' # Trigger on tags starting with 'v'
67

78
permissions:
89
contents: read
@@ -92,6 +93,7 @@ jobs:
9293
env:
9394
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9495
with:
96+
tag_name: ${{ github.ref_name }}
9597
name: Release ${{ steps.version.outputs.VERSION }}
9698
generate_release_notes: true
9799

0 commit comments

Comments
 (0)