Skip to content

Commit

Permalink
Migrate to preCICE Algolia account, update index in a workflow (#408)
Browse files Browse the repository at this point in the history
* Migrate to preCICE Algolia account
* Add manual workflow to update the Algolia index
* Add cron schedule
  • Loading branch information
MakisH authored May 22, 2024
1 parent 53232d8 commit 07a6403
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/update-algolia.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ url: https://precice.org
github: [metadata]

algolia:
application_id: I5M4FAJYBH
application_id: LIT6P0EW26
index_name: jekyll
search_only_api_key: d6f8d2f113bc342ee3f42421d0153bad
search_only_api_key: 760ed6be3e165d08b4a798ac4aa82fe4
nodes_to_index: 'p,code,table' # html tags to include in search index

plugins:
Expand Down

0 comments on commit 07a6403

Please sign in to comment.