Skip to content

Commit 366c90f

Browse files
Create docs-sync.yml
High-Level Project Layout (GitBook + GitHub + Roadmap) Sections: 1. BrainPay Core AI fraud model docs (model architecture, retraining) Blockchain monitoring architecture (BTC, ETH, SOL, etc.) Backend APIs and database schema (PostgreSQL, TimescaleDB) Frontend (Grafana/Next.js/Dash) 2. Flag Minting Suite Smart contract source IPFS metadata flow React minting UI GitHub repo + testnet guide 3. Financial Automations Tax filing workflows KYC/AML integrations (e.g., ID.me) API usage for banking/transactions 4. Auth & Access WebAuthn QR login Firebase/Auth0 strategy Role-based dashboards 5. DevOps + CI/CD Render/Firebase deploy guide GitHub Actions for: Docs sync Auto-build Docker images Security scan reports 6. Docs & Synced Knowledge README.md + milestones synced to GitBook Notion-linked architecture diagrams GitHub Issue templates + project boards ---
1 parent 120e263 commit 366c90f

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

docs-sync.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Sync Documentation to GitBook
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'README.md'
9+
- 'milestones.json'
10+
- '.github/workflows/docs-sync.yml'
11+
12+
jobs:
13+
sync-docs:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 'lts/*'
24+
25+
- name: Install curl
26+
run: sudo apt-get install -y curl
27+
28+
- name: Push README to GitBook
29+
env:
30+
GITBOOK_TOKEN: ${{ secrets.GITBOOK_TOKEN }}
31+
GITBOOK_SPACE_ID: ${{ secrets.GITBOOK_SPACE_ID }}
32+
run: |
33+
CONTENT=$(cat README.md | jq -Rs .)
34+
curl -X POST "https://api.gitbook.com/v1/spaces/${GITBOOK_SPACE_ID}/content" \
35+
-H "Authorization: Bearer ${GITBOOK_TOKEN}" \
36+
-H "Content-Type: application/json" \
37+
-d "{\"title\": \"BrainPay Documentation\", \"content\": $CONTENT}"
38+
39+
- name: Push Milestones to GitBook
40+
env:
41+
GITBOOK_TOKEN: ${{ secrets.GITBOOK_TOKEN }}
42+
GITBOOK_SPACE_ID: ${{ secrets.GITBOOK_SPACE_ID }}
43+
run: |
44+
CONTENT=$(cat milestones.json | jq -Rs .)
45+
curl -X POST "https://api.gitbook.com/v1/spaces/${GITBOOK_SPACE_ID}/content" \
46+
-H "Authorization: Bearer ${GITBOOK_TOKEN}" \
47+
-H "Content-Type: application/json" \
48+
-d "{\"title\": \"BrainPay Milestones\", \"content\": $CONTENT}"

0 commit comments

Comments
 (0)