From 96820e01911d039f2df19d95c4245be6d893fa6f Mon Sep 17 00:00:00 2001 From: Cat McGee Date: Thu, 6 Feb 2025 18:37:51 +0000 Subject: [PATCH 1/3] reindex typesense workflow --- .github/workflows/reindex-typesense.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/reindex-typesense.yml diff --git a/.github/workflows/reindex-typesense.yml b/.github/workflows/reindex-typesense.yml new file mode 100644 index 000000000000..553f7282ef9f --- /dev/null +++ b/.github/workflows/reindex-typesense.yml @@ -0,0 +1,23 @@ +name: Reindex TypeSense + +on: + release: + types: [prereleased, published] +jobs: + reindex: + name: Reindex docs in TypeSense + runs-on: ubuntu-latest + + steps: + - name: Check out the repo + uses: actions/checkout@v3 + + - name: Reindex with docsearch-scraper + run: | + docker run \ + -e "TYPESENSE_API_KEY=${{ secrets.TYPESENSE_API_KEY }}" \ + -e "TYPESENSE_HOST=${{ secrets.TYPESENSE_HOST }}" \ + -e "TYPESENSE_PORT=443" \ + -e "TYPESENSE_PROTOCOL=https" \ + -e "CONFIG=$(cat docs/typesense.config.json | jq -r tostring)" \ + typesense/docsearch-scraper:0.11.0 From ec635d4081f44db0f4cba9737b0d5c7cb5395433 Mon Sep 17 00:00:00 2001 From: Cat McGee Date: Fri, 7 Feb 2025 09:13:28 +0000 Subject: [PATCH 2/3] testing flow --- .github/workflows/reindex-typesense.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reindex-typesense.yml b/.github/workflows/reindex-typesense.yml index 553f7282ef9f..d482fdab66df 100644 --- a/.github/workflows/reindex-typesense.yml +++ b/.github/workflows/reindex-typesense.yml @@ -1,8 +1,12 @@ name: Reindex TypeSense on: - release: - types: [prereleased, published] +# testing + push: + branches: + - docs/typesense-reindex-in-ci + # release: + # types: [prereleased, published] jobs: reindex: name: Reindex docs in TypeSense From 3b00a860118a1c814ce2898d60d4158d15eb02cd Mon Sep 17 00:00:00 2001 From: Cat McGee Date: Fri, 7 Feb 2025 09:22:13 +0000 Subject: [PATCH 3/3] back to on preleased --- .github/workflows/reindex-typesense.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/reindex-typesense.yml b/.github/workflows/reindex-typesense.yml index d482fdab66df..553f7282ef9f 100644 --- a/.github/workflows/reindex-typesense.yml +++ b/.github/workflows/reindex-typesense.yml @@ -1,12 +1,8 @@ name: Reindex TypeSense on: -# testing - push: - branches: - - docs/typesense-reindex-in-ci - # release: - # types: [prereleased, published] + release: + types: [prereleased, published] jobs: reindex: name: Reindex docs in TypeSense