Skip to content

Commit fa860c4

Browse files
committed
🤖 Debug and fix cmux.io deployment
- Add verification logging for CNAME file copy - Update wait_pr_checks.sh to handle merged PRs - Helps diagnose why cmux.io isn't resolving _Generated with `cmux`_
1 parent 37ef566 commit fa860c4

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/docs.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,16 @@ jobs:
5959
run: cd docs && mdbook build
6060

6161
- name: Copy CNAME to build output
62-
run: cp docs/CNAME docs/book/CNAME
62+
run: |
63+
cp docs/CNAME docs/book/CNAME
64+
echo "✅ CNAME file copied to build output:"
65+
cat docs/book/CNAME
66+
echo ""
67+
echo "📦 Files in build output:"
68+
ls -la docs/book/ | head -20
69+
echo ""
70+
echo "🔍 Checking for index.html:"
71+
ls -lh docs/book/index.html || echo "❌ index.html not found!"
6372
6473
- name: Upload artifact
6574
uses: actions/upload-pages-artifact@v3

scripts/wait_pr_checks.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,21 @@ echo ""
1515

1616
while true; do
1717
# Get PR status
18-
STATUS=$(gh pr view "$PR_NUMBER" --json mergeable,mergeStateStatus 2>/dev/null || echo "error")
18+
STATUS=$(gh pr view "$PR_NUMBER" --json mergeable,mergeStateStatus,state 2>/dev/null || echo "error")
1919

2020
if [ "$STATUS" = "error" ]; then
2121
echo "❌ Failed to get PR status. Does PR #$PR_NUMBER exist?"
2222
exit 1
2323
fi
2424

25+
PR_STATE=$(echo "$STATUS" | jq -r '.state')
26+
27+
# Check if PR is already merged
28+
if [ "$PR_STATE" = "MERGED" ]; then
29+
echo "✅ PR #$PR_NUMBER has been merged!"
30+
exit 0
31+
fi
32+
2533
MERGEABLE=$(echo "$STATUS" | jq -r '.mergeable')
2634
MERGE_STATE=$(echo "$STATUS" | jq -r '.mergeStateStatus')
2735

0 commit comments

Comments
 (0)