WladlenVK commited on
Commit
5bd4e49
·
unverified ·
1 Parent(s): 61b5216

Update load_data.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/load_data.yml +5 -8
.github/workflows/load_data.yml CHANGED
@@ -1,12 +1,11 @@
1
  name: Load Book to Supabase
2
 
3
  on:
4
- workflow_dispatch:
5
 
6
  jobs:
7
  build:
8
  runs-on: ubuntu-latest
9
-
10
  steps:
11
  - name: Checkout code
12
  uses: actions/checkout@v3
@@ -14,16 +13,14 @@ jobs:
14
  - name: Set up Python
15
  uses: actions/setup-python@v4
16
  with:
17
- python-version: '3.11'
18
 
19
  - name: Install dependencies
20
- run: |
21
- python -m pip install --upgrade pip
22
- pip install langchain-community langchain-text-splitters langchain-google-genai supabase google-generativeai
23
 
24
  - name: Run loader
25
  env:
26
  SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
27
- SUPABASE_SERVICE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
28
- GOOGLE_API_KEY: ${{ secrets.GEMINI_API_KEY }}
29
  run: python load_book.py
 
1
  name: Load Book to Supabase
2
 
3
  on:
4
+ workflow_dispatch: # Позволяет запускать процесс кнопкой вручную
5
 
6
  jobs:
7
  build:
8
  runs-on: ubuntu-latest
 
9
  steps:
10
  - name: Checkout code
11
  uses: actions/checkout@v3
 
13
  - name: Set up Python
14
  uses: actions/setup-python@v4
15
  with:
16
+ python-version: '3.10'
17
 
18
  - name: Install dependencies
19
+ run: pip install -r requirements.txt
 
 
20
 
21
  - name: Run loader
22
  env:
23
  SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
24
+ SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
25
+ GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
26
  run: python load_book.py