Skip to content

Run Algolia Indexing Monthly #12

Run Algolia Indexing Monthly

Run Algolia Indexing Monthly #12

name: Run Algolia Indexing Monthly
on:
schedule:
- cron: '10 1 2 * *'
jobs:
algolia-index:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.4'
- name: Install dependencies
run: bundle install
- name: Run Algolia indexing
env:
algolia_api_key: ${{ secrets.ALGOLIA_API_KEY }}
run: ALGOLIA_API_KEY=$algolia_api_key bundle exec jekyll algolia push