Skip to content

Commit 27b4b02

Browse files
committed
Added Search
1 parent 529ea9e commit 27b4b02

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/deploy.yml

+30-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ env:
2222
DOCKER_VERSION: 232.10275
2323
# Add the variable below to upload Algolia indexes
2424
# 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 }}
2528
ALGOLIA_ARTIFACT: algolia-indexes-HI.zip
29+
CONFIG_JSON_PRODUCT: HI
30+
CONFIG_JSON_VERSION: 2.0
2631

2732
jobs:
2833
build:
@@ -99,4 +104,28 @@ jobs:
99104

100105
- name: Deploy to GitHub Pages
101106
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

Writerside/cfg/buildprofiles.xml

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
<build-profile instance="hi">
1313
<variables>
1414
<noindex-content>true</noindex-content>
15+
<algolia-id>B4IMCNPNHK</algolia-id>
16+
<algolia-index>Tutoriales</algolia-index>
17+
<algolia-api-key>781f7440793b2452e22d8d4d2b303e92</algolia-api-key>
18+
<web-root>https://poo-itba.github.io/tutoriales/</web-root>
1519
</variables>
1620
</build-profile>
1721
<footer>

0 commit comments

Comments
 (0)