add standard workflows

This commit is contained in:
Alexa Louise
2026-01-24 16:49:28 -06:00
parent ce210032e8
commit b9a12e142c
3 changed files with 40 additions and 46 deletions

21
.github/workflows/core-ci.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: CORE CI
on:
pull_request:
branches: [ main, master ]
push:
branches: [ main, master ]
jobs:
guard:
runs-on: ubuntu-latest
steps:
- name: Guardrail
run: echo "CORE repo guardrail active"
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint placeholder
run: echo "Add lint/test here"

View File

@@ -1,52 +1,11 @@
name: Deploy to Cloudflare Pages name: Deploy
on: on:
push: push:
branches: [main, master] branches: [ main ]
pull_request:
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest uses: blackboxprogramming/blackroad-deploy/.github/workflows/cloudflare-deploy.yml@main
steps: with:
- uses: actions/checkout@v3 project: blackroad-io
- 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)"

14
.github/workflows/project-sync.yml vendored Normal file
View File

@@ -0,0 +1,14 @@
name: Project Sync
on:
pull_request:
types: [opened, reopened]
jobs:
add-to-project:
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v1
with:
project-url: https://github.com/users/blackboxprogramming/projects/8
github-token: ${{ secrets.GITHUB_TOKEN }}