diff --git a/.github/workflows/core-ci.yml b/.github/workflows/core-ci.yml new file mode 100644 index 0000000..a6b97ac --- /dev/null +++ b/.github/workflows/core-ci.yml @@ -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" diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 54b8fd0..de357b2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,63 +1,11 @@ -name: Deploy to Cloudflare Pages +name: Deploy on: push: - branches: - - main - pull_request: + branches: [ main ] jobs: deploy: - runs-on: ubuntu-latest - permissions: - contents: read - deployments: write - name: Deploy to Cloudflare Pages - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Brand Compliance Check - run: | - echo "šŸŽØ Checking brand compliance..." - - # Check for forbidden colors - if grep -r "#FF9D00\|#FF6B00\|#FF0066\|#FF006B\|#D600AA\|#7700FF\|#0066FF" . --include="*.html" --include="*.css"; then - echo "āŒ Forbidden colors found! Please use official brand colors." - exit 1 - fi - - # Check for official colors - if grep -r "#F5A623\|#FF1D6C\|#2979FF\|#9C27B0" . --include="*.html" --include="*.css"; then - echo "āœ… Official brand colors detected!" - fi - - echo "āœ… Brand compliance check passed!" - - - name: Deploy to Cloudflare Pages - id: cloudflare_deploy - uses: cloudflare/pages-action@v1 - with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - projectName: aria-infrastructure-queen - directory: . - gitHubToken: ${{ secrets.GITHUB_TOKEN }} - - - name: Add deployment comment - if: github.event_name == 'pull_request' - uses: actions/github-script@v7 - with: - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: `### šŸš€ Deployment Preview\n\nāœ… Build completed successfully!\n\n**Preview URL:** ${{ steps.cloudflare_deploy.outputs.url }}\n\nšŸŽØ Brand compliance: **Passed**` - }) - - - name: Notify success - if: success() - run: | - echo "āœ… Deployment successful!" - echo "🌐 URL: ${{ steps.cloudflare_deploy.outputs.url }}" + uses: blackboxprogramming/blackroad-deploy/.github/workflows/cloudflare-deploy.yml@main + with: + project: blackroad-io diff --git a/.github/workflows/project-sync.yml b/.github/workflows/project-sync.yml new file mode 100644 index 0000000..4236565 --- /dev/null +++ b/.github/workflows/project-sync.yml @@ -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 }}