Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar authored Dec 13, 2023
1 parent 8505295 commit 34a930d
Showing 1 changed file with 32 additions and 32 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

0 comments on commit 34a930d

Please sign in to comment.