Fix sei-js link, fix turbopack #115
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |