ci: add CI action to reindex site into Trieve #37
This file contains 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: "Index Trieve Search Component" | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
create-search-index: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Ingest Trieve Search Index" | |
shell: bash | |
env: | |
ORGANIZATION_ID: ${{ secrets.TRIEVE_ORGANIZATION_ID }} | |
DATASET_ID: ${{ secrets.TRIEVE_DATASET_ID }} | |
API_KEY: ${{ secrets.TRIEVE_API_KEY }} | |
run: | | |
bash .github/workflows/index.sh | |
create-search-index-nushell: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: "Install Nushell" | |
run: | | |
cargo install nu --locked | |
- name: "Ingest Trieve Search Index" | |
shell: nu | |
env: | |
ORGANIZATION_ID: ${{ secrets.TRIEVE_ORGANIZATION_ID }} | |
DATASET_ID: ${{ secrets.TRIEVE_DATASET_ID }} | |
API_KEY: ${{ secrets.TRIEVE_API_KEY }} | |
run: | |