Skip to content

Commit 3c7466c

Browse files
committed
combined deploy and index building
1 parent 27be6c5 commit 3c7466c

File tree

2 files changed

+23
-27
lines changed

2 files changed

+23
-27
lines changed

.github/workflows/deploy-main.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,26 @@ jobs:
2525
id: deployment
2626
uses: actions/deploy-pages@v4
2727

28+
# This new job updates the search index after the build is complete
29+
update-search-index:
30+
runs-on: ubuntu-latest
31+
needs: [build, deploy]
32+
continue-on-error: true # Makes this job optional, as you had before
33+
defaults:
34+
run:
35+
working-directory: ./docs
36+
env:
37+
SECRET_ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
38+
steps:
39+
- name: Checkout repository
40+
uses: actions/checkout@v4
41+
42+
- name: Setup Ruby, Bundler, and Install Gems
43+
uses: ruby/setup-ruby@v1
44+
with:
45+
working-directory: ./docs
46+
bundler-cache: true
47+
48+
- name: Update Algolia Index
49+
run: |
50+
ALGOLIA_API_KEY="$SECRET_ALGOLIA_API_KEY" bundle exec jekyll algolia

.github/workflows/update_search_index.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)