From 732d07156ae4022ed604ebd34b0de3b80c5a0bba Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Sat, 13 Jul 2024 08:43:31 -0400 Subject: [PATCH] feat: embeddings workflow (#91) --- .github/workflows/generate_embeddings.yml | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/generate_embeddings.yml diff --git a/.github/workflows/generate_embeddings.yml b/.github/workflows/generate_embeddings.yml new file mode 100644 index 000000000..d7b5c666c --- /dev/null +++ b/.github/workflows/generate_embeddings.yml @@ -0,0 +1,28 @@ +name: 'generate_embeddings' + +on: + push: + branches: + - main + +jobs: + generate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Install dependencies + run: pnpm install + + - name: supabase-embeddings-generator + uses: supabase/embeddings-generator@v0.0.5 + with: + supabase-url: 'https://gnoyckdqaktttbfurtcv.supabase.co' + supabase-service-role-key: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }} + openai-key: ${{ secrets.OPENAI_KEY }} + docs-root-path: './pages'