biohazard-vfx-website/.gitea/workflows/deploy-production.yml
NicholaiVogel 54909d79e5 feat: initial repository setup with Next.js, Tailwind CSS, ShadCN UI, and Gitea CI/CD
- Initialize Next.js 15.5.4 with TypeScript and App Router
- Configure Tailwind CSS v4 with ShadCN UI component library
- Set up OpenNext for Cloudflare Workers deployment
- Add Gitea Actions workflows for CI/CD (lint, build, deploy)
- Create issue templates (bug, feature, question) and PR template
- Add comprehensive CONTRIBUTING.md and README.md documentation
- Configure build scripts and deployment configuration
2025-10-12 03:02:14 -06:00

45 lines
1.0 KiB
YAML

name: Deploy Production
on:
push:
branches:
- main
jobs:
deploy-production:
name: Deploy to Production
runs-on: ubuntu-latest
environment:
name: production
url: https://biohazardvfx.com
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build with OpenNext
run: npm run build:open-next
env:
NODE_ENV: production
- name: Deploy to Cloudflare Workers (Production)
run: |
npx wrangler deploy --env production
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
- name: Notify deployment success
run: |
echo "✅ Production deployment completed successfully!"