From 1b954f1383282be4e0ad21304156bf8bb4fc69f0 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Thu, 8 Jun 2023 13:46:10 -0500 Subject: [PATCH] cralwer.algolia.com performs indexing --- .github/workflows/rebuild-search-index.yml | 26 ---------------------- 1 file changed, 26 deletions(-) delete mode 100644 .github/workflows/rebuild-search-index.yml diff --git a/.github/workflows/rebuild-search-index.yml b/.github/workflows/rebuild-search-index.yml deleted file mode 100644 index 4f969e84d5..0000000000 --- a/.github/workflows/rebuild-search-index.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Rebuild Search Index -on: - workflow_dispatch: -permissions: read-all -jobs: - build: - if: github.repository_owner == 'spring-projects' - runs-on: ubuntu-latest - env: - CONFIG_FILE: .github/actions/docsearch-config.json - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 5 - - name: Configure Indexer - run: | - curl -sL -o $CONFIG_FILE $(node -p "require('fs').readFileSync('antora-playbook.yml', 'utf8').match(/^ url: (.*)/m)[1]")/docsearch-config.json - INDEX_NAME=$(node -p "JSON.parse(require('fs').readFileSync('$CONFIG_FILE')).index_name") - echo "INDEX_NAME_TMP=${INDEX_NAME}-${GITHUB_RUN_ID}" >> $GITHUB_ENV - - name: Run Indexer - uses: darrenjennings/algolia-docsearch-action@master - with: - algolia_application_id: ${{ secrets.ALGOLIA_APPLICATION_ID }} - algolia_api_key: ${{ secrets.ALGOLIA_WRITE_KEY }} - file: ${{ env.CONFIG_FILE }}