Skip to content

Commit f0733e4

Browse files
committed
explicit guide index step
1 parent abca50c commit f0733e4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,22 @@ jobs:
8383
github_token: ${{ secrets.GITHUB_TOKEN }}
8484
publish_dir: ./public
8585

86+
- name: Index guides
87+
id: indexguides
88+
env:
89+
ALGOLIA_ID: ${{ secrets.ALGOLIA_ID }}
90+
ALGOLIA_KEY: ${{ secrets.ALGOLIA_KEY }}
91+
ALGOLIA_INDEX: ${{ secrets.ALGOLIA_INDEX }}
92+
run: |
93+
astropylibrarian index guide \
94+
https://www.astropy.org/ccd-reduction-and-photometry-guide/index.html \
95+
--algolia-id "$ALGOLIA_ID" \
96+
--algolia-key "$ALGOLIA_KEY" \
97+
--index "$ALGOLIA_INDEX"
98+
8699
- name: Pre-index tutorials
87100
id: preindex
101+
if: steps.indexguides.outcome == 'success'
88102
env:
89103
ALGOLIA_ID: ${{ secrets.ALGOLIA_ID }}
90104
ALGOLIA_KEY: ${{ secrets.ALGOLIA_KEY }}

0 commit comments

Comments
 (0)