File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 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
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 }} 
Original file line number Diff line number Diff line change 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 :
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments