Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #66 from TeenBiscuits/search
Browse files Browse the repository at this point in the history
Add Angolia Search
  • Loading branch information
TeenBiscuits authored Jan 29, 2024
2 parents 817af03 + 719da1b commit 84e0dcf
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
ARTIFACT: webHelpPRO2-all.zip
# Writerside docker image version
DOCKER_VERSION: 233.14272
ALGOLIA_ARTIFACT: algolia-indexes-PRO.zip

jobs:
construir:
Expand All @@ -38,7 +39,45 @@ jobs:
artifacts/report.json
retention-days: 7

- name: Upload algolia-indexes
uses: actions/upload-artifact@v3
with:
name: algolia-indexes
path: artifacts/${{ env.ALGOLIA_ARTIFACT }}
retention-days: 7

publicar-indexes:
# Requires the build-job results
needs: construir
runs-on: ubuntu-latest
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
run: |
unzip -O UTF-8 -qq ${{ env.ALGOLIA_ARTIFACT }} -d algolia-indexes
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
comprobar:
env:
ALGOLIA_APP_NAME: 0K3UBN277V
ALGOLIA_INDEX_NAME: pro2324
ALGOLIA_KEY: ${{ secrets.ALGOLIA_KEY }}
ALGOLIA_ARTIFACT: algolia-indexes-PRO.zip
CONFIG_JSON_PRODUCT: PRO
CONFIG_JSON_VERSION: 2023-2024
# Requires build job results
needs: construir
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions docs/cfg/buildprofiles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
<download-title>Repositorio en GitHub</download-title>
<download-page>https://github.com/TeenBiscuits/Pro2324</download-page>
<showDownloadButton>true</showDownloadButton>
<!-- ANGOLIA SEARCH -->
<algolia-id>0K3UBN277V</algolia-id>
<algolia-index>pro2324</algolia-index>
<algolia-api-key>${{ secrets.ALGOLIA_KEY }}</algolia-api-key>
<web-root>https://teenbiscuits.github.io/Pro2324/</web-root>
</variables>
<shortcuts>
<src>keymap.xml</src>
Expand Down
2 changes: 2 additions & 0 deletions docs/topics/Para-Colaboradores.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<no-index/>

# Para Colaboradores

<tldr>
Expand Down

0 comments on commit 84e0dcf

Please sign in to comment.