Skip to content

Commit 043e721

Browse files
committed
⚙️ update prod/preview workflow configs
1 parent bc669d1 commit 043e721

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/deploy-preview.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ jobs:
5959
run: hugo --logLevel info -D -e staging
6060
env:
6161
# HUGO_PARAMS_DOCSEARCH_indexName: ${{ secrets.ALGOLIA_INDEX_NAME }}
62-
HUGO_PARAMS_DOCSEARCH_appID: ${{ vars.DOCSEARCH_APPID }}
63-
HUGO_PARAMS_DOCSEARCH_apiKey: ${{ vars.DOCSEARCH_APIKEY }}
64-
HUGO_PARAMS_DOCSEARCH_indexName: ${{ vars.DOCSEARCH_INDEXNAME }}
62+
HUGO_PARAMS_DOCSEARCH_appID: ${{ secrets.DOCSEARCH_APP_ID }}
63+
HUGO_PARAMS_DOCSEARCH_apiKey: ${{ secrets.DOCSEARCH_PUBLIC_API_KEY }}
64+
HUGO_PARAMS_DOCSEARCH_indexName: ${{ secrets.DOCSEARCH_INDEXNAME }}
6565
HUGO_PARAMS_PLAUSIBLE_dataDomain: ${{ secrets.PLAUSIBLE_DOMAIN }}
6666
HUGO_GOOGLEANALYTICS: ${{ vars.HUGO_GOOGLEANALYTICS }}
6767

@@ -82,6 +82,8 @@ jobs:
8282
lotusdocs-staging.vercel.app
8383
8484
docsearch-scrape:
85+
# The environment this job references
86+
environment: Preview
8587

8688
# The type of runner that the job will run on
8789
runs-on: ubuntu-20.04
@@ -107,6 +109,6 @@ jobs:
107109
id: docsearch-scrape
108110
uses: adapttive/algolia-docsearch-action@1.1.1
109111
env:
110-
APPLICATION_ID: ${{ secrets.DOCSEARCH_APP_ID_PREVIEW }}
111-
API_KEY: ${{ secrets.DOCSEARCH_WRITE_API_KEY_PREVIEW }}
112+
APPLICATION_ID: ${{ secrets.DOCSEARCH_APP_ID }}
113+
API_KEY: ${{ secrets.DOCSEARCH_WRITE_API_KEY }}
112114
CONFIG: ${{ steps.docsearch-config.outputs.config }}

.github/workflows/deploy-production.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ jobs:
9494
- name: Checkout
9595
uses: actions/checkout@v3
9696

97-
# Step 2 - Perform DocSearch crawl only if content files were changed
98-
- name: Algolia crawl on content update
97+
# Step 2 - Perform DocSearch crawl and reindex of the site contents
98+
- name: Algolia crawl and reindex
9999
uses: algolia/algoliasearch-crawler-github-actions@v1.1.13
100100
id: docsearch-crawl
101101
with:

0 commit comments

Comments
 (0)