ig manual draft #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "[Search] Build and publish search index" | |
on: | |
push: | |
branches: ['main'] | |
jobs: | |
build: | |
name: Algolia push records | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Ruby 3.1.2 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1.2 | |
- name: Install dependencies and push records | |
run: | | |
cd docs | |
gem install bundler | |
bundle install --jobs 4 --retry 3 | |
bundle exec jekyll algolia | |
env: | |
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }} |