diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index e123a2f..40bc495 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -108,30 +108,30 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 - publish-indexes: - needs: [ build, test, deploy ] - runs-on: ubuntu-latest - container: - image: registry.jetbrains.team/p/writerside/builder/algolia-publisher:2.0.32-3 - steps: - - name: Download artifact - uses: actions/download-artifact@v4 - with: - name: docs - path: artifacts - - name: Unzip Algolia artifact - run: unzip -O UTF-8 -qq "artifacts/${{ needs.build.outputs.algolia_artifact }}" -d algolia-indexes - - name: Update Algolia Index - run: | - if [ -z "${{ secrets.ALGOLIA_KEY }}" ]; then - echo "ALGOLIA_KEY secret is not set in GitHub Secrets" - exit 1 - else - env "algolia-key=${{ secrets.ALGOLIA_KEY }}" java -jar /opt/builder/help-publication-agent.jar \ - update-index \ - --application-name ${{ env.ALGOLIA_APP_NAME }} \ - --index-name ${{ env.ALGOLIA_INDEX_NAME }} \ - --product ${{ env.CONFIG_JSON_PRODUCT }} \ - --index-directory algolia-indexes/ \ - 2>&1 | tee algolia-update-index-log.txt - fi + publish-indexes: + needs: [ build, test, deploy ] + runs-on: ubuntu-latest + container: + image: registry.jetbrains.team/p/writerside/builder/algolia-publisher:2.0.32-3 + steps: + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: docs + path: artifacts + - name: Unzip Algolia artifact + run: unzip -O UTF-8 -qq "artifacts/${{ needs.build.outputs.algolia_artifact }}" -d algolia-indexes + - name: Update Algolia Index + run: | + if [ -z "${{ secrets.ALGOLIA_KEY }}" ]; then + echo "ALGOLIA_KEY secret is not set in GitHub Secrets" + exit 1 + else + env "algolia-key=${{ secrets.ALGOLIA_KEY }}" java -jar /opt/builder/help-publication-agent.jar \ + update-index \ + --application-name ${{ env.ALGOLIA_APP_NAME }} \ + --index-name ${{ env.ALGOLIA_INDEX_NAME }} \ + --product ${{ env.CONFIG_JSON_PRODUCT }} \ + --index-directory algolia-indexes/ \ + 2>&1 | tee algolia-update-index-log.txt + fi