Skip to content

Commit c30b502

Browse files
committed
Revert "ci: polish MCP registry job\n\n- Disable setup-go cache to remove go.sum warning\n- Add retries to DNS login\n- Track MCP_STATUS and print summary\n- Keep best-effort behavior without failing workflow"
This reverts commit 11eaff2.
1 parent 3b21c29 commit c30b502

1 file changed

Lines changed: 1 addition & 40 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ jobs:
177177
uses: actions/setup-go@v5
178178
with:
179179
go-version: '1.22'
180-
cache: false # avoid warning about missing go.sum
181180

182181
- name: Install MCP Publisher
183182
if: env.MCP_DNS_PRIVATE_KEY != ''
@@ -194,20 +193,7 @@ jobs:
194193
if: env.MCP_DNS_PRIVATE_KEY != ''
195194
run: |
196195
echo "🔐 Using DNS authentication for com.xcodebuildmcp/* namespace"
197-
attempts=0
198-
max_attempts=5
199-
delay=5
200-
until ./mcp-publisher login dns --domain xcodebuildmcp.com --private-key "${MCP_DNS_PRIVATE_KEY}"; do
201-
rc=$?
202-
attempts=$((attempts+1))
203-
if [ $attempts -ge $max_attempts ]; then
204-
echo "::warning::MCP Registry login failed after $attempts attempts (exit $rc). Proceeding to publish attempt which will also retry."
205-
break
206-
fi
207-
echo "⚠️ Login failed (exit $rc). Retrying in ${delay}s... (attempt ${attempts}/${max_attempts})"
208-
sleep $delay
209-
delay=$((delay*2))
210-
done
196+
./mcp-publisher login dns --domain xcodebuildmcp.com --private-key "${MCP_DNS_PRIVATE_KEY}"
211197
212198
- name: Publish to MCP Registry (best-effort)
213199
if: env.MCP_DNS_PRIVATE_KEY != ''
@@ -221,35 +207,10 @@ jobs:
221207
attempts=$((attempts+1))
222208
if [ $attempts -ge $max_attempts ]; then
223209
echo "⚠️ MCP Registry publish failed after $attempts attempts (exit $rc). Skipping without failing workflow."
224-
echo "MCP_STATUS=FAILED" >> $GITHUB_ENV
225210
exit 0
226211
fi
227212
echo "⚠️ Publish failed (exit $rc). Retrying in ${delay}s... (attempt ${attempts}/${max_attempts})"
228213
sleep $delay
229214
delay=$((delay*2))
230215
done
231216
echo "✅ MCP Registry publish succeeded."
232-
echo "MCP_STATUS=SUCCESS" >> $GITHUB_ENV
233-
234-
- name: Mark MCP publish skipped
235-
if: env.MCP_DNS_PRIVATE_KEY == ''
236-
run: |
237-
echo "MCP_STATUS=SKIPPED" >> $GITHUB_ENV
238-
239-
- name: MCP Publish Summary
240-
if: always()
241-
run: |
242-
case "${MCP_STATUS}" in
243-
SUCCESS)
244-
echo "✅ MCP Registry publish completed successfully."
245-
;;
246-
SKIPPED)
247-
echo "⚠️ MCP Registry publish skipped (missing MCP_DNS_PRIVATE_KEY)."
248-
;;
249-
FAILED)
250-
echo "::warning::MCP Registry publish failed after retries (best-effort). Release remains successful."
251-
;;
252-
*)
253-
echo "ℹ️ MCP Registry publish status unknown."
254-
;;
255-
esac

0 commit comments

Comments
 (0)