Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
upload-cloud

GitHub Action

Algolia Docsearch Uploader

v2.0.0

Algolia Docsearch Uploader

upload-cloud

Algolia Docsearch Uploader

An Algolia docsearch uploader

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Algolia Docsearch Uploader

uses: guzhongren/[email protected]

Learn more about this action in guzhongren/algolia-docsearch-upload-action

Choose a version

algolia-docsearch-upload-action

An especially small & quick & simple Algolia docsearch Indices upload action

Usage

- name: Algolia Docsearch Uploader
  uses: guzhongren/[email protected]
  env:
    FILE_PATH: "./public/index.json"
    APPLICATION_ID: ${{secrets.ALGOLIA_APPLICATION_ID}}
    ADMIN_API_KEY: ${{secrets.ALGOLIA_API_KEY}}
    INDEX_NAME: "index.zh-cn"

local Dev

Put it at the top of entrypoint.sh

export APPLICATION_ID=APP_ID
export ADMIN_API_KEY=API_KEY
export INDEX_NAME="index.zh-cn"
export FILE_PATH="./test/data/index.json"