Skip to content

Commit 04e4f07

Browse files
authored
Merge pull request #31 from FlutterFlow/anusha/pinecone-github-action
Knowledge base github action
2 parents 6523fa9 + 8843c6d commit 04e4f07

File tree

6 files changed

+791
-0
lines changed

6 files changed

+791
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy to Alpha Firestore
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
deploy-alpha:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.9'
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r requirements.txt
24+
25+
- name: Deploy to Alpha Firestore
26+
env:
27+
FIRESTORE_PROJECT_ID: ${{ secrets.ALPHA_FIRESTORE_PROJECT_ID }}
28+
FIRESTORE_CREDENTIALS_JSON: ${{ secrets.ALPHA_FIRESTORE_CREDENTIALS_JSON }}
29+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
30+
run: |
31+
python update_docs.py --mode incremental
32+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy to Dev Firestore
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
deploy-dev:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.9'
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r requirements.txt
24+
25+
- name: Deploy to Dev Firestore
26+
env:
27+
FIRESTORE_PROJECT_ID: ${{ secrets.DEV_FIRESTORE_PROJECT_ID }}
28+
FIRESTORE_CREDENTIALS_JSON: ${{ secrets.DEV_FIRESTORE_CREDENTIALS_JSON }}
29+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
30+
run: |
31+
python update_docs.py --mode incremental
32+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy to Prod Firestore
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
deploy-prod:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.9'
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r requirements.txt
24+
25+
- name: Deploy to Prod Firestore
26+
env:
27+
FIRESTORE_PROJECT_ID: ${{ secrets.PROD_FIRESTORE_PROJECT_ID }}
28+
FIRESTORE_CREDENTIALS_JSON: ${{ secrets.PROD_FIRESTORE_CREDENTIALS_JSON }}
29+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
30+
run: |
31+
python update_docs.py --mode incremental

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
openai
2+
google-cloud-firestore

0 commit comments

Comments
 (0)