Skip to content

Commit a89d47a

Browse files
authored
Merge pull request #276 from Kotlin/algolia-indexes
setup algolia indexes update
2 parents c7f6cba + 83b3c4f commit a89d47a

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ env:
1111
PRODUCT: StardustDocs/d
1212
ARTIFACT: webHelpD2-all.zip
1313
ALGOLIA_ARTIFACT: algolia-indexes-D.zip
14+
ALGOLIA_APP_NAME: OHIV241QET
15+
ALGOLIA_INDEX_NAME: prod_JETBRAINSCOM_HELP
16+
ALGOLIA_KEY: ${{ secrets.ALGOLIA_KEY }}
17+
CONFIG_JSON_PRODUCT: Dataframe
18+
CONFIG_JSON_VERSION: 0.9
1419

1520
jobs:
1621
build-job:
@@ -57,3 +62,28 @@ jobs:
5762
- name: Deploy to GitHub Pages
5863
id: deployment
5964
uses: actions/deploy-pages@v1
65+
66+
publish-indexes:
67+
# Requires the build-job results
68+
needs: build-job
69+
runs-on: ubuntu-latest
70+
container:
71+
image: registry.jetbrains.team/p/writerside/builder/algolia-publisher:2.0.32-2
72+
73+
steps:
74+
- uses: actions/checkout@v3
75+
- uses: actions/download-artifact@v3
76+
with:
77+
name: algolia-indexes
78+
- uses: montudor/action-zip@v1
79+
with:
80+
args: unzip -qq algolia-indexes-HP.zip -d algolia-indexes
81+
- run: |
82+
env "algolia-key=${{env.ALGOLIA_KEY}}" java -jar /opt/builder/help-publication-agent.jar \
83+
update-index \
84+
--application-name ${{env.ALGOLIA_APP_NAME}} \
85+
--index-name ${{env.ALGOLIA_INDEX_NAME}} \
86+
--product ${{env.CONFIG_JSON_PRODUCT}} \
87+
--version ${{env.CONFIG_JSON_VERSION}} \
88+
--index-directory algolia-indexes/ \
89+
2>&1 | tee algolia-update-index-log.txt

docs/StardustDocs/cfg/buildprofiles.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
<config-feedback-support>null</config-feedback-support>
1111
<config-feedback-url>https://support.jetbrains.com</config-feedback-url>
1212
<config-webmaster>[email protected]</config-webmaster>
13+
<config-algolia-id>OHIV241QET</config-algolia-id>
14+
<config-algolia-index>prod_JETBRAINSCOM_HELP</config-algolia-index>
15+
<config-algolia-api-key>17f5c6a6e439886860d760d9ce054fd8</config-algolia-api-key>
1316
<config-search-scopes-provider>https://www.jetbrains.com/search/json/</config-search-scopes-provider>
1417
<generate-sitemap-url-prefix>https://kotlin.github.io/dataframe/</generate-sitemap-url-prefix>
1518
</variables>

0 commit comments

Comments
 (0)