File tree Expand file tree Collapse file tree 6 files changed +791
-0
lines changed
Expand file tree Collapse file tree 6 files changed +791
-0
lines changed Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ openai
2+ google-cloud-firestore
You can’t perform that action at this time.
0 commit comments