Refactor header module documentation #581
Workflow file for this run
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: Demo ngrok docs | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Demo ngrok docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: 'Create env file' | |
run: | | |
echo DEPLOY_ENV=dev > .env | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Check formatting | |
run: pnpm run fmt:check | |
- name: Build website | |
run: pnpm run build | |
search-index-dev: | |
needs: deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run algolia/docsearch-scraper | |
run: | | |
docker pull algolia/docsearch-scraper | |
docker run \ | |
-e ALGOLIA_APP_ID=${{ secrets.DEV_ALGOLIA_APPLICATION_ID }} \ | |
-e API_KEY=${{ secrets.DEV_ALGOLIA_API_KEY }} \ | |
-e "CONFIG=$(cat ./algolia_dev.config.json | jq -r tostring)" \ | |
algolia/docsearch-scraper |