Update the Algolia search index #2
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: Update the Algolia search index | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 16 * * Sun" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
lfs: false | |
path: website | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
working-directory: website | |
- name: Build website and update Algolia index | |
working-directory: website | |
env: | |
JEKYLL_ENV: production | |
run: ALGOLIA_API_KEY=${{ secrets.ALGOLIA_API_KEY }} bundle exec jekyll algolia |