-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to preCICE Algolia account, update index in a workflow (#408)
* Migrate to preCICE Algolia account * Add manual workflow to update the Algolia index * Add cron schedule
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
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
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 |
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