Skip to content

Merge pull request #467 from sei-protocol/add-pyth-vrf-doc #114

Merge pull request #467 from sei-protocol/add-pyth-vrf-doc

Merge pull request #467 from sei-protocol/add-pyth-vrf-doc #114

name: Update Trieve Dataset
on:
push:
branches: [main]
paths:
- 'content/**'
- 'app/**'
- 'scripts/**'
workflow_dispatch:
jobs:
update-trieve:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Build Next.js app
run: yarn build
- name: Run scrape-docs script
run: yarn scrape-docs
- name: Upload to Trieve
run: yarn upload-to-trieve
env:
TRIEVE_API_KEY: ${{ secrets.TRIEVE_API_KEY }}
TRIEVE_DATASET_ID: ${{ secrets.TRIEVE_DATASET_ID }}