Skip to content

Merge branch 'main' of https://github.com/aicodingstack/aicodingstack.io #28

Merge branch 'main' of https://github.com/aicodingstack/aicodingstack.io

Merge branch 'main' of https://github.com/aicodingstack/aicodingstack.io #28

name: Deploy Production
on:
push:
branches: [main]
concurrency:
group: production
cancel-in-progress: false
jobs:
deploy-production:
name: Deploy to Cloudflare Pages
runs-on: ubuntu-latest
environment:
name: production
url: https://aicodingstack.io
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Validate manifests
run: npm run validate:manifests
- name: Generate manifests and metadata
run: |
npm run generate:manifests
npm run generate:metadata
- name: Build with OpenNext
run: npm run build
env:
BUILD_TIME: ${{ github.event.head_commit.timestamp }}
# TODO: Configure Cloudflare Pages deployment
# You'll need to add these secrets to your repository:
# - CLOUDFLARE_API_TOKEN
# - CLOUDFLARE_ACCOUNT_ID
#
# Uncomment the steps below after adding the secrets:
#
# - name: Deploy to Cloudflare Pages (Production)
# uses: cloudflare/wrangler-action@v3
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# command: pages deploy .open-next --project-name=aicodingstack --branch=main
#
# - name: Notify deployment success
# run: |
# echo "✅ Production deployment successful!"
# echo "🌐 Site: https://aicodingstack.io"
# echo "📝 Commit: ${{ github.sha }}"
- name: Production deployment placeholder
run: |
echo "⚠️ Production deployment not yet configured"
echo "To enable production deployments:"
echo "1. Add CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID to repository secrets"
echo "2. Uncomment the deployment steps in .github/workflows/deploy-production.yml"
echo ""
echo "Manual deployment command:"
echo "npm run deploy"