Merge pull request #118 from balancer/architecture-changes #50
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: Algolia Indexer | |
on: | |
push: | |
branches: | |
- v3-outline | |
jobs: | |
algolia_indexer: | |
runs-on: ubuntu-latest | |
env: | |
APPLICATION_ID: ${{ secrets.ALGOLIA_APP_ID }} | |
API_KEY: ${{ secrets.ALGOLIA_API_KEY }} | |
INDEX_NAME: 'v3-docs' | |
# TODO: Rework indexing | |
CONFIG: '{ "index_name": "v3-docs", | |
"start_urls": [ | |
"https://docs-v3.balancer.fi/", | |
"https://docs-v3.balancer.fi/integration-guides/", | |
"https://docs-v3.balancer.fi/build-a-custom-amm/", | |
"https://docs-v3.balancer.fi/developer-reference/", | |
"https://docs-v3.balancer.fi/concepts/core-concepts/introduction.html", | |
"https://docs-v3.balancer.fi/partner-onboarding/onboarding-overview/introduction.html", | |
"https://docs-v3.balancer.fi/data-and-analytics/"], | |
"selectors": { | |
"lvl0": "#app header h1", | |
"lvl1": ".page h1", | |
"lvl2": ".page h2", | |
"lvl3": ".page h3", | |
"lvl4": ".page h4", | |
"lvl5": ".page h5", | |
"text": ".page p, .page li, .page td" }}' | |
name: Index Algolia | |
steps: | |
- name: Algolia Docsearch Action | |
id: algolia | |
uses: adapttive/algolia-docsearch-action@1.1.1 |