@@ -42,14 +42,14 @@ jobs:
4242 python-version : ${{ env.PYTHON_VERSION }}
4343
4444 - name : Install dependencies
45- working-directory : ./backend
45+ working-directory : ./AIGovHub/ backend
4646 run : |
4747 pip install fastapi uvicorn sqlmodel psycopg2-binary alembic pydantic python-multipart
4848 pip install python-jose passlib reportlab
4949 pip install pytest httpx
5050
5151 - name : Run tests
52- working-directory : ./backend
52+ working-directory : ./AIGovHub/ backend
5353 env :
5454 DATABASE_URL : postgresql://postgres:postgres@localhost:5432/ai_governance_test
5555 run : pytest tests/ -v --tb=short || echo "Tests completed"
@@ -69,18 +69,18 @@ jobs:
6969 with :
7070 node-version : ${{ env.NODE_VERSION }}
7171 cache : ' npm'
72- cache-dependency-path : frontend/package-lock.json
72+ cache-dependency-path : AIGovHub/ frontend/package-lock.json
7373
7474 - name : Install dependencies
75- working-directory : ./frontend
75+ working-directory : ./AIGovHub/ frontend
7676 run : npm ci
7777
7878 - name : Run linting
79- working-directory : ./frontend
79+ working-directory : ./AIGovHub/ frontend
8080 run : npm run lint || true
8181
8282 - name : Build
83- working-directory : ./frontend
83+ working-directory : ./AIGovHub/ frontend
8484 run : npm run build
8585
8686 # ============================================
@@ -100,7 +100,7 @@ jobs:
100100 - name : Build backend image
101101 uses : docker/build-push-action@v5
102102 with :
103- context : ./backend
103+ context : ./AIGovHub/ backend
104104 push : false
105105 tags : ai-governance-hub-backend:latest
106106 cache-from : type=gha
@@ -109,14 +109,35 @@ jobs:
109109 - name : Build frontend image
110110 uses : docker/build-push-action@v5
111111 with :
112- context : ./frontend
112+ context : ./AIGovHub/ frontend
113113 push : false
114114 tags : ai-governance-hub-frontend:latest
115115 cache-from : type=gha
116116 cache-to : type=gha,mode=max
117117
118118 # ============================================
119- # Deploy (Manual Trigger)
119+ # Deploy to Dev
120+ # ============================================
121+ deploy-dev :
122+ name : Deploy to Dev
123+ runs-on : ubuntu-latest
124+ needs : [docker-build]
125+ if : github.ref == 'refs/heads/develop' && github.event_name == 'push'
126+ environment : development
127+
128+ steps :
129+ - uses : actions/checkout@v4
130+
131+ - name : Deploy setup
132+ run : echo "Configuring dev deployment..."
133+
134+ - name : Trigger Dev Deployment
135+ run : |
136+ echo "🚀 Deploying to Development Environment (Placeholder)"
137+ # Add actual deployment commands here (e.g. kubectl apply, aws ecs update)
138+
139+ # ============================================
140+ # Deploy to Staging
120141 # ============================================
121142 deploy :
122143 name : Deploy to Staging
0 commit comments