durganihantri commited on
Commit
dc328ad
·
unverified ·
1 Parent(s): fd9c43a

Create main.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +29 -0
.github/workflows/main.yml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Deploy Flask App
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main # Change this if your default branch is different
7
+
8
+ jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - name: Checkout Repository
14
+ uses: actions/checkout@v3
15
+
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v3
18
+ with:
19
+ python-version: '3.8'
20
+
21
+ - name: Install Dependencies
22
+ run: |
23
+ python -m pip install --upgrade pip
24
+ pip install -r backend/requirements.txt
25
+
26
+ - name: Run Flask App
27
+ run: |
28
+ cd backend
29
+ python app.py