Skip to content

Commit 7a65b25

Browse files
DMontgomery40claude
andcommitted
ci: add workflow to sync ragweld.com on web/ changes
Triggers Netlify rebuild when tribrid-rag/web changes are pushed. Setup required: 1. Create build hook in Netlify dashboard 2. Add RAGWELD_NETLIFY_HOOK secret to this repo Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 815de43 commit 7a65b25

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/sync-ragweld.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Trigger ragweld.com rebuild when web/ changes
2+
# This ensures the live demo stays in sync with the source code
3+
#
4+
# Setup required:
5+
# 1. In Netlify: Site settings > Build & deploy > Build hooks > Add build hook
6+
# Name: "sync-from-tribrid-rag"
7+
# 2. In GitHub: Settings > Secrets > Add secret
8+
# Name: RAGWELD_NETLIFY_HOOK
9+
# Value: The build hook URL from step 1
10+
11+
name: Sync ragweld.com
12+
13+
on:
14+
push:
15+
branches: [main]
16+
paths:
17+
- 'web/**'
18+
- '.github/workflows/sync-ragweld.yml'
19+
20+
jobs:
21+
trigger-rebuild:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Trigger Netlify build
25+
run: |
26+
if [ -z "${{ secrets.RAGWELD_NETLIFY_HOOK }}" ]; then
27+
echo "Warning: RAGWELD_NETLIFY_HOOK secret not set"
28+
echo "Skipping Netlify trigger"
29+
exit 0
30+
fi
31+
curl -X POST -d '{}' "${{ secrets.RAGWELD_NETLIFY_HOOK }}"
32+
echo "Triggered ragweld.com rebuild"

0 commit comments

Comments
 (0)