Skip to content

Hello and Echo Contracts (#485) #38

Hello and Echo Contracts (#485)

Hello and Echo Contracts (#485) #38

name: Reindex embeddings
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
tags:
- "*"
jobs:
reindex-embeddings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
- uses: actions/cache@v3
id: yarn-cache
with:
path: "**/node_modules"
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
- name: Install yarn packages
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel env pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Generate embeddings
run: yarn generate-embeddings