mirror of
https://github.com/blackboxprogramming/new_world.git
synced 2026-03-17 07:57:24 -05:00
Synced from BlackRoad-OS-Inc/blackroad-operator/orgs/personal/new_world BlackRoad OS — Pave Tomorrow. RoadChain-SHA2048: b76200263d8fb3e1 RoadChain-Identity: alexa@sovereign RoadChain-Full: b76200263d8fb3e1b7b4c5a231c28e0148970f5382a802c4b4aa815a3a3ba02a7c028868bd9f7f538dda3c0d2fcb73dda3c0f9a9662cfb070440928170c77549fb9b5a0459118689e1a681ccb344a6954a97402048d6f42cbb55e6f14cf897b3c0205535917a43958da8dd2614efa620f2cb220116a5e774d4095878ad20765f1cc46725c82076970a14627e7c4cd54a2cac3699714e4b3e0b3d6c5913645d49d02c190d52f34061ff95fd7dca8416810380ac2093d70db3291cc403efd321fcf09bc55cd448bafe32c2ddb54ecad88d5ea8cfdd3f7ce8160b6a1f7dbdcd9d83e2cea16823f3645f67a3465ef86de0314750da03530346032aa0db08decaa3de
53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
name: Deploy to Cloudflare Pages
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Brand Compliance Check
|
|
run: |
|
|
echo "🎨 Checking BlackRoad brand compliance..."
|
|
if grep -r "#FF9D00\|#FF6B00\|#FF0066\|#FF006B\|#D600AA\|#7700FF\|#0066FF" . \
|
|
--include="*.html" --include="*.css" --include="*.js" --include="*.jsx" --include="*.tsx" 2>/dev/null; then
|
|
echo "❌ FORBIDDEN COLORS FOUND! Must use official BlackRoad colors:"
|
|
echo " ✅ Hot Pink: #FF1D6C"
|
|
echo " ✅ Amber: #F5A623"
|
|
echo " ✅ Electric Blue: #2979FF"
|
|
echo " ✅ Violet: #9C27B0"
|
|
exit 1
|
|
fi
|
|
echo "✅ Brand compliance check passed"
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '18'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
if [ -f "package.json" ]; then
|
|
npm install
|
|
fi
|
|
|
|
- name: Build
|
|
run: |
|
|
if [ -f "package.json" ] && grep -q '"build"' package.json; then
|
|
npm run build
|
|
fi
|
|
|
|
- name: Deploy to Cloudflare Pages
|
|
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
|
|
env:
|
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
run: |
|
|
echo "🚀 Would deploy to Cloudflare Pages here"
|
|
echo " (Requires org secrets: CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID)"
|