Skip to content

Commit

Permalink
Merge pull request #8 from Laravel-Lang/andrey-helldar-patch-1
Browse files Browse the repository at this point in the history
Documentation search fix
  • Loading branch information
andrey-helldar authored Dec 13, 2023
2 parents c065fec + 34a930d commit c4e456a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,35 +214,35 @@ jobs:
id: deployment
uses: actions/deploy-pages@v3

# deploy-indexes:
# environment: deploy
#
# needs: test
# name: Deploy to Algolia
# runs-on: ubuntu-latest
# timeout-minutes: 3
#
# container:
# image: registry.jetbrains.team/p/writerside/builder/algolia-publisher:2.0.32-2
#
# steps:
# - name: Download search artifact
# uses: actions/download-artifact@v3
# with:
# name: algolia-indexes
#
# - name: Unzip artifact
# uses: montudor/action-zip@v1
# with:
# args: unzip -qq ${{ env.ALGOLIA_ARTIFACT }} -d algolia-indexes
#
# - name: Deploy to Algolia
# run: |
# env "algolia-key=${{ env.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 }} \
# --version ${{ env.CONFIG_JSON_VERSION }} \
# --index-directory algolia-indexes/ \
# 2>&1 | tee algolia-update-index-log.txt
deploy-indexes:
environment: deploy

needs: test
name: Deploy to Algolia
runs-on: ubuntu-latest
timeout-minutes: 3

container:
image: registry.jetbrains.team/p/writerside/builder/algolia-publisher:2.0.32-2

steps:
- name: Download search artifact
uses: actions/download-artifact@v3
with:
name: algolia-indexes

- name: Unzip artifact
uses: montudor/action-zip@v1
with:
args: unzip -qq ${{ env.ALGOLIA_ARTIFACT }} -d algolia-indexes

- name: Deploy to Algolia
run: |
env "algolia-key=${{ env.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 }} \
--version ${{ env.CONFIG_JSON_VERSION }} \
--index-directory algolia-indexes/ \
2>&1 | tee algolia-update-index-log.txt
4 changes: 2 additions & 2 deletions docs/cfg/buildprofiles.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<buildprofiles xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/build-profiles.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<variables>
<algolia-api-key>16d8712bbb850e6bcb517f1436824afc</algolia-api-key>
<algolia-id>TFI39P0622</algolia-id>
<algolia-api-key>1830e628456a000ddfeb32941f42a78c</algolia-api-key>
<algolia-id>K2N865FUBK</algolia-id>
<algolia-index>laravel-lang</algolia-index>
<generate-canonicals>true</generate-canonicals>
<header-logo>logo.svg</header-logo>
Expand Down

0 comments on commit c4e456a

Please sign in to comment.