Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram). AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan. Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: Deploy to Production
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
tags:
|
|
- 'v*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Deploy to Production
|
|
runs-on: ubuntu-latest
|
|
environment: production
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Install dependencies
|
|
working-directory: ./backend
|
|
run: npm ci
|
|
|
|
- name: Generate Prisma Client
|
|
working-directory: ./backend
|
|
run: npx prisma generate
|
|
env:
|
|
DATABASE_URL: ${{ secrets.PRODUCTION_DATABASE_URL }}
|
|
|
|
- name: Run migrations
|
|
working-directory: ./backend
|
|
run: npx prisma migrate deploy
|
|
env:
|
|
DATABASE_URL: ${{ secrets.PRODUCTION_DATABASE_URL }}
|
|
|
|
- name: Build
|
|
working-directory: ./backend
|
|
run: npm run build
|
|
|
|
- name: Deploy to production
|
|
run: |
|
|
echo "Deploy to production server"
|
|
# Add your deployment commands here
|
|
# Example: Docker push to registry, Kubernetes deployment, etc.
|
|
|