-
Notifications
You must be signed in to change notification settings - Fork 7
72 lines (62 loc) · 2.11 KB
/
deploy-production.yml
File metadata and controls
72 lines (62 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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@v4
- name: Setup Node.js
uses: actions/setup-node@v4
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"