Skip to content
upload-cloud

GitHub Action

Algolia Docsearch Uploader

v2.1.0 Latest version

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"

Dev

Branch

  • dev: Developer used
  • main: release

Release steps

After pushed the dev branch to origin

git checkout main
git pull -r
git tag v2.1.0
git push origin v2.1.0

Release a new version in github release page