@@ -78,32 +78,32 @@ jobs:
7878 vercel-args : " --prod --local-config ../vercel.json" # Optional
7979 working-directory : public
8080
81- docsearch-scrape :
81+ # docsearch-scrape:
8282
83- # The type of runner that the job will run on
84- runs-on : ubuntu-20.04
85- needs : [deploy-production]
86- # Run job only if there are changes to 'content/docs/**' or 'docsearch-prod.json'
87- if : |
88- needs.deploy-production.outputs.docs == 'true' ||
89- needs.deploy-production.outputs.docsearch_config == 'true'
83+ # # The type of runner that the job will run on
84+ # runs-on: ubuntu-20.04
85+ # needs: [deploy-production]
86+ # # Run job only if there are changes to 'content/docs/**' or 'docsearch-prod.json'
87+ # if: |
88+ # needs.deploy-production.outputs.docs == 'true' ||
89+ # needs.deploy-production.outputs.docsearch_config == 'true'
9090
91- steps :
92- # Step 1 - Checks-out your repository under $GITHUB_WORKSPACE
93- - name : Checkout
94- uses : actions/checkout@v3
91+ # steps:
92+ # # Step 1 - Checks-out your repository under $GITHUB_WORKSPACE
93+ # - name: Checkout
94+ # uses: actions/checkout@v3
9595
96- # Step 2 - Format and output DocSearch config
97- - name : Output formatted docsearch-*.json as config
98- id : docsearch-config
99- # run: echo "::set-output name=config::$(cat docsearch-preview.json | jq -r tostring)"
100- run : echo "config=$(cat docsearch-prod.json | jq -r tostring)" >> $GITHUB_OUTPUT
96+ # # Step 2 - Format and output DocSearch config
97+ # - name: Output formatted docsearch-*.json as config
98+ # id: docsearch-config
99+ # # run: echo "::set-output name=config::$(cat docsearch-preview.json | jq -r tostring)"
100+ # run: echo "config=$(cat docsearch-prod.json | jq -r tostring)" >> $GITHUB_OUTPUT
101101
102- # Step 3 - Update DocSearch Index only if content files were changed
103- - name : Algolia DocSearch Crawl & Index
104- id : docsearch-scrape
105- uses : adapttive/algolia-docsearch-action@1.1.1
106- env :
107- APPLICATION_ID : ${{ secrets.DOCSEARCH_APP_ID_PROD }}
108- API_KEY : ${{ secrets.DOCSEARCH_WRITE_API_KEY_PROD }}
109- CONFIG : ${{ steps.docsearch-config.outputs.config }}
102+ # # Step 3 - Update DocSearch Index only if content files were changed
103+ # - name: Algolia DocSearch Crawl & Index
104+ # id: docsearch-scrape
105+ # uses: adapttive/algolia-docsearch-action@1.1.1
106+ # env:
107+ # APPLICATION_ID: ${{ secrets.DOCSEARCH_APP_ID_PROD }}
108+ # API_KEY: ${{ secrets.DOCSEARCH_WRITE_API_KEY_PROD }}
109+ # CONFIG: ${{ steps.docsearch-config.outputs.config }}
0 commit comments