add CI workflow and scripts to rebuild search index

This commit is contained in:
Dan Allen
2022-09-01 17:51:37 -06:00
parent 7cea7b49aa
commit a3024326a3
4 changed files with 57 additions and 1 deletions

View File

@@ -4,8 +4,8 @@ on:
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
#if: github.repository_owner == 'spring-projects'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

View File

@@ -0,0 +1,15 @@
name: Rebuild Search Index
on:
workflow_dispatch:
permissions: read-all
jobs:
build:
#if: github.repository_owner == 'spring-projects'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 5
- name: Run Docsearch Scraper
run: $GITHUB_WORKSPACE/.github/actions/algolia-docsearch-scraper.sh "${{ secrets.ALGOLIA_APPLICATION_ID }}" "${{ secrets.ALGOLIA_WRITE_API_KEY }}" $GITHUB_WORKSPACE/.github/actions/algolia-config.json