Skip to content

Algolia Index Updater enables you to update your Algolia index file automatically, clearing your index before adding new records.

License

Notifications You must be signed in to change notification settings

tilburgsciencehub/algolia-uploader

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algolia Index Updater

Algolia Index Updater enables you to update your Algolia index file automatically.

The updater is largely based on wangchucheng/algolia-uploader, with the main difference being that we use the index.replace_all_objects method instead of index.save_objects. Therefore we clear all objects from the index before replacing them with a new set of objects. See the Algolia documentation for more information.

Try Algolia Index Updater

You can use the following example as a template to create a new file with any name under .github/workflows/.

name: <action_name>

on:
  push:
    branches: [ master ]

jobs:
  upload_algolia_index:
    runs-on: ubuntu-latest
    name: Update Algolia Index
    steps:
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - uses: tilburgsciencehub/algolia-uploader@master
      with:
        # Algolia app id
        app_id: <your_ID>
        # Secret token in the organization's 'Setting > Secrets'
        admin_key: ${{ secrets.ALGOLIA_ADMIN_KEY }}
        # The index name
        index_name: <your_index_name>
        # The index file path relative to repo root.
        index_file_path: search-index.json

About

Algolia Index Updater enables you to update your Algolia index file automatically, clearing your index before adding new records.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 81.9%
  • Dockerfile 18.1%