Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Nov 24, 2023
1 parent bbd9e59 commit c387771
Showing 1 changed file with 29 additions and 30 deletions.
59 changes: 29 additions & 30 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,33 +127,32 @@ jobs:
id: deployment
uses: actions/deploy-pages@v2

deploy-indexes:
needs: test
runs-on: ubuntu-latest
if: true = false
timeout-minutes: 3

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

steps:
- name: Download 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:
# needs: test
# runs-on: ubuntu-latest
# timeout-minutes: 3
#
# container:
# image: registry.jetbrains.team/p/writerside/builder/algolia-publisher:2.0.32-2
#
# steps:
# - name: Download 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 c387771

Please sign in to comment.