-
Notifications
You must be signed in to change notification settings - Fork 11
62 lines (60 loc) · 1.54 KB
/
algolia-search-scraper.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Algolia Search Scraper
on:
schedule:
- cron: "0 8 * * *"
workflow_dispatch:
jobs:
build:
name: Trigger Algolia Scraper
runs-on: ubuntu-20.04
environment: algolia
strategy:
fail-fast: false
matrix:
version:
[
"teku",
"goquorum",
"linea",
"tessera",
"web3signer",
"ethsigner",
"docs-template",
"gnark",
"orion",
]
steps:
- uses: actions/checkout@v4
- id: config
name: Read ${{ matrix.version }}.json
shell: bash
run: |
content=$(cat ./.github/config/${{ matrix.version }}.json | jq -r tostring)
echo "configJSON=$content" >> $GITHUB_OUTPUT
- name: Checkout algolia/docsearch-scraper
uses: actions/checkout@v4
with:
repository: algolia/docsearch-scraper
path: "./algolia"
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.6"
- name: Install pipenv
shell: bash
run: |
pip install pipenv
- name: pipenv Pipfile
shell: bash
run: |
cd ./algolia
pipenv install
- name: run algolia
shell: bash
env:
APPLICATION_ID: ${{ secrets.APPLICATION_ID }}
API_KEY: ${{ secrets.API_KEY }}
CONFIG: ${{ steps.config.outputs.configJSON }}
run: |
cd ./algolia/scraper
pipenv run python -m src.index