We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 915b11c commit 19caedfCopy full SHA for 19caedf
1 file changed
.github/workflows/release.yml
@@ -125,7 +125,23 @@ jobs:
125
126
- name: Publish to MCP Registry
127
if: github.event_name == 'push'
128
- run: ./mcp-publisher publish
+ run: |
129
+ echo "🚢 Publishing to MCP Registry with retries..."
130
+ attempts=0
131
+ max_attempts=5
132
+ delay=5
133
+ until ./mcp-publisher publish; do
134
+ rc=$?
135
+ attempts=$((attempts+1))
136
+ if [ $attempts -ge $max_attempts ]; then
137
+ echo "❌ Publish failed after $attempts attempts (exit $rc)"
138
+ exit $rc
139
+ fi
140
+ echo "⚠️ Publish failed (exit $rc). Retrying in ${delay}s... (attempt ${attempts}/${max_attempts})"
141
+ sleep $delay
142
+ delay=$((delay*2))
143
+ done
144
+ echo "✅ Publish succeeded."
145
146
- name: Create GitHub Release (production releases only)
147
0 commit comments