-
Notifications
You must be signed in to change notification settings - Fork 2.2k
41 lines (40 loc) · 1.1 KB
/
pr.yml
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
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