Skip to content

Merge pull request #233 from jybp/typo-docs/osmosis-core/modules/supe… #11

Merge pull request #233 from jybp/typo-docs/osmosis-core/modules/supe…

Merge pull request #233 from jybp/typo-docs/osmosis-core/modules/supe… #11

name: Scrape Docs Site
on:
push:
branches:
- main
workflow_dispatch:
jobs:
scrape:
runs-on: ubuntu-latest
steps:
- name: check out code 🛎
uses: actions/checkout@v2
# inject secrets as environment variables
# then pass their values into the Docker container using "-e" syntax
# and inject config.json contents as another variable
- name: Sleep for 5 min to allow site to be published.
run: |
sleep 5m
- name: Scrape the Site 🧽
env:
APPLICATION_ID: ${{ secrets.BETA_APPLICATION_ID }}
API_KEY: ${{ secrets.BETA_API_KEY }}
run: |
docker run \
-e APPLICATION_ID -e API_KEY \
-e CONFIG="$(cat docsearch.config.json)" \
algolia/docsearch-scraper