🤩 Generating search index #364
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: 🤩 Generating search index | |
on: | |
schedule: | |
- cron: '0 18 * * *' | |
jobs: | |
test: | |
name: Generating search index | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Check out code | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- name: 🤩 Generating search index from the live gimlet.io site | |
run: | | |
cat << EOF > .env.local | |
APPLICATION_ID=$APP_ID | |
API_KEY=$ADMIN_API_KEY | |
EOF | |
docker run --env-file=.env.local -e "CONFIG=$(cat ./config.json | jq -r tostring)" algolia/docsearch-scraper | |
env: | |
APP_ID: ${{ secrets.APP_ID }} | |
ADMIN_API_KEY: ${{ secrets.ADMIN_API_KEY }} |