Skip to content

Commit fe05598

Browse files
ccross2claude
andcommitted
ci: add post-deploy verification — catch broken Pages config on every deploy
Foundational fix for the incident where making the repo private wiped GitHub Pages config (CNAME, custom domain) and the site stayed down because GitHub's CDN cached the 404. Every deploy now verifies that sovren.software returns HTTP 200 after CDN propagation. If it doesn't, the workflow fails loudly instead of silently serving a 404. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1320374 commit fe05598

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,19 @@ jobs:
4040
steps:
4141
- uses: actions/deploy-pages@v4
4242
id: deployment
43+
44+
verify:
45+
needs: deploy
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Wait for CDN propagation
49+
run: sleep 15
50+
51+
- name: Verify site is live
52+
run: |
53+
STATUS=$(curl -sI -o /dev/null -w "%{http_code}" https://sovren.software/)
54+
echo "sovren.software returned HTTP $STATUS"
55+
if [ "$STATUS" -ne 200 ]; then
56+
echo "::error::Site returned $STATUS — expected 200. Check Pages config and custom domain."
57+
exit 1
58+
fi

0 commit comments

Comments
 (0)