Compare commits
No commits in common. "3d6bb1f39e39a6b7d8837899c4d3380c6c1db6ce" and "25a89176a844fabcaca6c4800fd0dab317f7363b" have entirely different histories.
3d6bb1f39e
...
25a89176a8
9 changed files with 159 additions and 85 deletions
|
@ -3,12 +3,9 @@
|
||||||
"allow": [
|
"allow": [
|
||||||
"Bash(find:*)",
|
"Bash(find:*)",
|
||||||
"Bash(ls:*)",
|
"Bash(ls:*)",
|
||||||
"Bash(git pull:*)",
|
|
||||||
"Bash(git remote set-url:*)",
|
|
||||||
"Bash(git add:*)",
|
|
||||||
"Bash(git commit:*)",
|
|
||||||
"Bash(mv:*)",
|
"Bash(mv:*)",
|
||||||
"Bash(git checkout:*)"
|
"Bash(git checkout:*)",
|
||||||
|
"Bash(git add:*)"
|
||||||
],
|
],
|
||||||
"deny": []
|
"deny": []
|
||||||
}
|
}
|
||||||
|
|
60
.forgejo/workflows/build-check.yml
Normal file
60
.forgejo/workflows/build-check.yml
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Workflow for building and testing Next.js site on non-master branches
|
||||||
|
name: Build Check
|
||||||
|
|
||||||
|
on:
|
||||||
|
# Runs on pushes to any branch except master
|
||||||
|
push:
|
||||||
|
branches-ignore: ["master"]
|
||||||
|
|
||||||
|
# Runs on pull requests targeting any branch
|
||||||
|
pull_request:
|
||||||
|
branches: ["*"]
|
||||||
|
|
||||||
|
# Allow multiple concurrent build checks
|
||||||
|
concurrency:
|
||||||
|
group: "build-check-${{ github.ref }}"
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-check:
|
||||||
|
runs-on: self-hosted
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Restore Next.js cache
|
||||||
|
uses: https://code.forgejo.org/actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
.next/cache
|
||||||
|
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
|
||||||
|
|
||||||
|
- name: Run linting
|
||||||
|
run: npm run lint
|
||||||
|
|
||||||
|
- name: Build Next.js site
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Run tests (if available)
|
||||||
|
run: |
|
||||||
|
if npm run test --if-present; then
|
||||||
|
echo "✅ Tests passed"
|
||||||
|
else
|
||||||
|
echo "ℹ️ No tests found or tests skipped"
|
||||||
|
fi
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Build verification complete
|
||||||
|
run: |
|
||||||
|
echo "🎉 Build verification successful!"
|
||||||
|
echo "✅ Dependencies installed"
|
||||||
|
echo "✅ Linting passed"
|
||||||
|
echo "✅ Build completed successfully"
|
||||||
|
echo "Ready for review and merge!"
|
|
@ -1,29 +0,0 @@
|
||||||
name: CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ main, master, feature/* ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ main, master ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: self-hosted
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm ci
|
|
||||||
|
|
||||||
- name: Run linting
|
|
||||||
run: npm run lint
|
|
||||||
|
|
||||||
- name: Run type checking
|
|
||||||
run: npm run typecheck
|
|
||||||
|
|
||||||
- name: Build application
|
|
||||||
run: npm run build
|
|
||||||
env:
|
|
||||||
# Use empty string for YOUTUBE_API_KEY during CI build
|
|
||||||
YOUTUBE_API_KEY: ""
|
|
|
@ -1,41 +0,0 @@
|
||||||
name: Deploy
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ main, master ]
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: self-hosted
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm ci
|
|
||||||
|
|
||||||
- name: Build application
|
|
||||||
run: npm run build
|
|
||||||
env:
|
|
||||||
# Access YouTube API key from repository secrets
|
|
||||||
YOUTUBE_API_KEY: ${{ secrets.YOUTUBE_API_KEY }}
|
|
||||||
|
|
||||||
- name: Deploy to S3 (if configured)
|
|
||||||
run: |
|
|
||||||
if [ -n "${{ secrets.AWS_ACCESS_KEY_ID }}" ]; then
|
|
||||||
echo "Deploying to S3..."
|
|
||||||
npm run deploy:s3
|
|
||||||
else
|
|
||||||
echo "AWS credentials not configured, skipping S3 deployment"
|
|
||||||
fi
|
|
||||||
env:
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
AWS_REGION: ${{ secrets.AWS_REGION }}
|
|
||||||
|
|
||||||
- name: Upload build artifacts
|
|
||||||
uses: https://codeberg.org/actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: build-output
|
|
||||||
path: out/
|
|
72
.forgejo/workflows/nextjs.yml
Normal file
72
.forgejo/workflows/nextjs.yml
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
# Workflow for building and deploying a Next.js site to AWS S3
|
||||||
|
name: Deploy Next.js site to S3
|
||||||
|
|
||||||
|
on:
|
||||||
|
# Runs on pushes targeting the default branch
|
||||||
|
push:
|
||||||
|
branches: ["master"]
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||||
|
concurrency:
|
||||||
|
group: "s3-deployment"
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: self-hosted
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: read
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Create .env.local file
|
||||||
|
run: |
|
||||||
|
echo "YOUTUBE_API_KEY=${{ secrets.YOUTUBE_API_KEY }}" > .env.local
|
||||||
|
echo "S3_BUCKET_NAME=${{ secrets.S3_BUCKET_NAME }}" >> .env.local
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Restore Next.js cache
|
||||||
|
uses: https://code.forgejo.org/actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
.next/cache
|
||||||
|
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
|
||||||
|
|
||||||
|
- name: Build Next.js site
|
||||||
|
env:
|
||||||
|
YOUTUBE_API_KEY: ${{ secrets.YOUTUBE_API_KEY }}
|
||||||
|
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
|
||||||
|
run: npm run build:static
|
||||||
|
|
||||||
|
- name: Configure AWS credentials
|
||||||
|
# Note: aws-actions/configure-aws-credentials is GitHub-specific
|
||||||
|
# For Forgejo, we'll use environment variables directly
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
AWS_DEFAULT_REGION: us-east-1
|
||||||
|
run: |
|
||||||
|
echo "AWS credentials configured via environment variables"
|
||||||
|
|
||||||
|
- name: Deploy to S3
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
AWS_DEFAULT_REGION: us-east-1
|
||||||
|
run: |
|
||||||
|
aws s3 sync out/ s3://${{ secrets.S3_BUCKET_NAME }} --delete --no-cli-pager
|
||||||
|
|
||||||
|
- name: Output deployment URL
|
||||||
|
run: |
|
||||||
|
echo "🎉 Deployment successful!"
|
||||||
|
echo "S3 website URL: http://${{ secrets.S3_BUCKET_NAME }}.s3-website-us-east-1.amazonaws.com"
|
||||||
|
echo "Note: Site will be served through CloudFlare proxy for production"
|
|
@ -3,6 +3,7 @@ import type { Metadata } from 'next';
|
||||||
import { Button } from '@/components/ui/button';
|
import { Button } from '@/components/ui/button';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { ExternalLink } from 'lucide-react';
|
import { ExternalLink } from 'lucide-react';
|
||||||
|
import { Footer } from '@/components/Footer';
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Video Gallery - Community Coverage of Chelsea Smallwood",
|
title: "Video Gallery - Community Coverage of Chelsea Smallwood",
|
||||||
|
@ -84,7 +85,9 @@ export default async function GalleryPage() {
|
||||||
const videos = await getYouTubeVideos(videoIds);
|
const videos = await getYouTubeVideos(videoIds);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="container mx-auto max-w-5xl py-12 px-4 sm:px-6 lg:px-8">
|
<div className="flex flex-col min-h-screen bg-background text-foreground">
|
||||||
|
<main className="flex-grow">
|
||||||
|
<div className="container mx-auto max-w-5xl py-12 px-4 sm:px-6 lg:px-8">
|
||||||
<header className="text-center mb-12">
|
<header className="text-center mb-12">
|
||||||
<h1 className="text-4xl sm:text-5xl font-extrabold tracking-tight text-primary font-headline">
|
<h1 className="text-4xl sm:text-5xl font-extrabold tracking-tight text-primary font-headline">
|
||||||
YouTube Community Coverage
|
YouTube Community Coverage
|
||||||
|
@ -125,6 +128,10 @@ export default async function GalleryPage() {
|
||||||
<Link href="/">Back to Home</Link>
|
<Link href="/">Back to Home</Link>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { Inter } from 'next/font/google';
|
||||||
import './globals.css';
|
import './globals.css';
|
||||||
import { Toaster } from '@/components/ui/toaster';
|
import { Toaster } from '@/components/ui/toaster';
|
||||||
import { ThemeProvider } from '@/components/theme-provider';
|
import { ThemeProvider } from '@/components/theme-provider';
|
||||||
import { Footer } from '@/components/Footer';
|
|
||||||
|
|
||||||
const inter = Inter({ subsets: ['latin'] });
|
const inter = Inter({ subsets: ['latin'] });
|
||||||
|
|
||||||
|
@ -72,12 +71,7 @@ export default function RootLayout({
|
||||||
enableSystem
|
enableSystem
|
||||||
disableTransitionOnChange
|
disableTransitionOnChange
|
||||||
>
|
>
|
||||||
<div className="flex flex-col min-h-screen bg-background text-foreground">
|
{children}
|
||||||
<main className="flex-grow">
|
|
||||||
{children}
|
|
||||||
</main>
|
|
||||||
<Footer />
|
|
||||||
</div>
|
|
||||||
<Toaster />
|
<Toaster />
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -7,6 +7,7 @@ import {
|
||||||
CardHeader,
|
CardHeader,
|
||||||
} from '@/components/ui/card';
|
} from '@/components/ui/card';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
import { Footer } from '@/components/Footer';
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "The Full Story: Chelsea Smallwood's Controversial Empire",
|
title: "The Full Story: Chelsea Smallwood's Controversial Empire",
|
||||||
description: "A deep dive into how Chelsea Smallwood built a business on monetizing infidelity, the controversy surrounding 'The Other Woman and the Wife,' and the serious allegations of cyberbullying and harassment in the Kristen Jacobs lawsuit.",
|
description: "A deep dive into how Chelsea Smallwood built a business on monetizing infidelity, the controversy surrounding 'The Other Woman and the Wife,' and the serious allegations of cyberbullying and harassment in the Kristen Jacobs lawsuit.",
|
||||||
|
@ -14,7 +15,9 @@ export const metadata: Metadata = {
|
||||||
|
|
||||||
export default function LongStoryPage() {
|
export default function LongStoryPage() {
|
||||||
return (
|
return (
|
||||||
<div className="container mx-auto max-w-4xl py-12 px-4 sm:px-6 lg:px-8">
|
<div className="flex flex-col min-h-screen bg-background text-foreground">
|
||||||
|
<main className="flex-grow">
|
||||||
|
<div className="container mx-auto max-w-4xl py-12 px-4 sm:px-6 lg:px-8">
|
||||||
<header className="text-center mb-12">
|
<header className="text-center mb-12">
|
||||||
<h1 className="text-4xl sm:text-5xl font-extrabold tracking-tight text-primary font-headline">
|
<h1 className="text-4xl sm:text-5xl font-extrabold tracking-tight text-primary font-headline">
|
||||||
Chelsea Smallwood's Controversial Empire
|
Chelsea Smallwood's Controversial Empire
|
||||||
|
@ -196,6 +199,10 @@ export default function LongStoryPage() {
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,10 +8,13 @@ import {
|
||||||
CardHeader,
|
CardHeader,
|
||||||
} from '@/components/ui/card';
|
} from '@/components/ui/card';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
import { Footer } from '@/components/Footer';
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<div className="container mx-auto max-w-4xl py-12 px-4 sm:px-6 lg:px-8">
|
<div className="flex flex-col min-h-screen bg-background text-foreground">
|
||||||
|
<main className="flex-grow">
|
||||||
|
<div className="container mx-auto max-w-4xl py-12 px-4 sm:px-6 lg:px-8">
|
||||||
<header className="text-center mb-12">
|
<header className="text-center mb-12">
|
||||||
<h1 className="text-4xl sm:text-5xl font-extrabold tracking-tight text-primary font-headline">
|
<h1 className="text-4xl sm:text-5xl font-extrabold tracking-tight text-primary font-headline">
|
||||||
Cheating Chelsea Exposed
|
Cheating Chelsea Exposed
|
||||||
|
@ -171,6 +174,10 @@ export default function Home() {
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue