22
22
DOCKER_VERSION : 232.10275
23
23
# Add the variable below to upload Algolia indexes
24
24
# Replace HI with the ID of the instance in capital letters
25
+ ALGOLIA_APP_NAME : B4IMCNPNHK
26
+ ALGOLIA_INDEX_NAME : Tutoriales
27
+ ALGOLIA_KEY : ${{ secrets.ALGOLIA_KEY }}
25
28
ALGOLIA_ARTIFACT : algolia-indexes-HI.zip
29
+ CONFIG_JSON_PRODUCT : HI
30
+ CONFIG_JSON_VERSION : 2.0
26
31
27
32
jobs :
28
33
build :
@@ -99,4 +104,28 @@ jobs:
99
104
100
105
- name : Deploy to GitHub Pages
101
106
id : deployment
102
- uses : actions/deploy-pages@v1
107
+ uses : actions/deploy-pages@v1
108
+
109
+ publish-indexes :
110
+ # Requires the build-job results
111
+ needs : build
112
+ runs-on : ubuntu-latest
113
+ container :
114
+ image : registry.jetbrains.team/p/writerside/builder/algolia-publisher:2.0.32-2
115
+
116
+ steps :
117
+ - name : Download artifact
118
+ uses : actions/download-artifact@v3
119
+ with :
120
+ name : algolia-indexes
121
+ - name : Unzip artifact
122
+ run : |
123
+ unzip -O UTF-8 -qq ${{ env.ALGOLIA_ARTIFACT }} -d algolia-indexes
124
+ env "algolia-key=${{env.ALGOLIA_KEY}}" java -jar /opt/builder/help-publication-agent.jar \
125
+ update-index \
126
+ --application-name ${{env.ALGOLIA_APP_NAME}} \
127
+ --index-name ${{env.ALGOLIA_INDEX_NAME}} \
128
+ --product ${{env.CONFIG_JSON_PRODUCT}} \
129
+ --version ${{env.CONFIG_JSON_VERSION}} \
130
+ --index-directory algolia-indexes/ \
131
+ 2>&1 | tee algolia-update-index-log.txt
0 commit comments