Skip to content

Commit e15e7b3

Browse files
committed
Changes changes
1 parent b89d8c5 commit e15e7b3

15 files changed

Lines changed: 102 additions & 9 deletions
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy Backend to Cloud Run
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "backend/**"
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- id: auth
17+
uses: google-github-actions/auth@v2
18+
with:
19+
credentials_json: ${{ secrets.GCP_SA_KEY }}
20+
21+
- uses: google-github-actions/setup-gcloud@v2
22+
23+
- name: Deploy to Cloud Run
24+
run: |
25+
cd backend
26+
gcloud run deploy expense-ocr \
27+
--source . \
28+
--region us-central1 \
29+
--allow-unauthenticated \
30+
--project ${{ secrets.GCP_PROJECT_ID }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ nul
77
*.csv
88
*.pdf
99
*.md
10+
.env
1011
pdf_converter.py

CLI/app/Dashboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
sys.path.insert(0,os.path.abspath(os.path.join(os.path.dirname(__file__),'..')))
77

88
# Initialize the session states
9-
from CLI.core.streamlit_setup import init_st
9+
from CLI.app.streamlit_setup import init_st
1010

1111
# Initialize the streamlit variables
1212
init_st()

CLI/app/pages/Add Material.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
sys.path.insert(0,os.path.abspath(os.path.join(os.path.dirname(__file__),'..','..')))
77

88
# Initialize the session states
9-
from CLI.core.streamlit_setup import init_st,sync_data
9+
from CLI.app.streamlit_setup import init_st,sync_data
1010

1111
init_st()
1212

CLI/app/pages/Delete Material.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
sys.path.insert(0,os.path.abspath(os.path.join(os.path.dirname(__file__),'..','..')))
77

88
# Initialize the session states
9-
from CLI.core.streamlit_setup import init_st,sync_data
9+
from CLI.app.streamlit_setup import init_st,sync_data
1010

1111
init_st()
1212

CLI/app/pages/Edit Material.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
sys.path.insert(0,os.path.abspath(os.path.join(os.path.dirname(__file__),'..','..')))
77

88
# Initialize the session states
9-
from CLI.core.streamlit_setup import init_st,sync_data
9+
from CLI.app.streamlit_setup import init_st,sync_data
1010

1111
init_st()
1212

CLI/app/pages/View Expenses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
sys.path.insert(0,os.path.abspath(os.path.join(os.path.dirname(__file__),'..','..')))
77

88
# Initialize the session states
9-
from CLI.core.streamlit_setup import init_st,sync_data
9+
from CLI.app.streamlit_setup import init_st,sync_data
1010

1111
init_st()
1212

CLI/app/pages/View Income.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
sys.path.insert(0,os.path.abspath(os.path.join(os.path.dirname(__file__),'..','..')))
77

88
# Initialize the session states
9-
from CLI.core.streamlit_setup import init_st,sync_data
9+
from CLI.app.streamlit_setup import init_st,sync_data
1010

1111
init_st()
1212

CLI/app/pages/View Subscriptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
sys.path.insert(0,os.path.abspath(os.path.join(os.path.dirname(__file__),'..','..')))
77

88
# Initialize the session states
9-
from CLI.core.streamlit_setup import init_st,sync_data
9+
from CLI.app.streamlit_setup import init_st,sync_data
1010

1111
init_st()
1212

0 commit comments

Comments
 (0)