Skip to content

peiyanlu/algolia-docsearch-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algolia Docsearch Action

This action runs the docsearch scraper and updates an index.

Inputs

algolia_application_id

Required Algolia docsearch APPLICATION_ID

algolia_api_key

Required Algolia docsearch API_KEY

algolia_config_file

Required config file able to be accessed from $GITHUB_WORKSPACE, used in tandem with actions/checkout@master

Secrets

Create new ones separately ALGOLIA_APP_IDALGOLIA_API_KEY 存放 Application IDAdmin API Key

path: Settings -> Secrets and variables -> Actions

Example usage

- uses: actions/checkout@v3

- name: Push indices to Algolia
  uses: peiyanlu/algolia-docsearch-action@master
  with:
    algolia_application_id: ${{ secrets.ALGOLIA_APP_ID }}
    algolia_api_key: ${{ secrets.ALGOLIA_API_KEY }}
    # file needs to be inside $GITHUB_WORKSPACE from actions/checkout step
    algolia_config_file: algolia.config.json

About

runs the docsearch scraper and updates an index

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published