mirror of
https://github.com/jlengrand/jreleaser.github.io.git
synced 2026-03-10 08:31:25 +00:00
Switch to GH action for updating search index
This commit is contained in:
14
.github/workflows/push.yml
vendored
14
.github/workflows/push.yml
vendored
@@ -33,13 +33,9 @@ jobs:
|
||||
branch: 'gh-pages'
|
||||
commit-message: "[CI] Publish Documentation for ${{ github.sha }}"
|
||||
|
||||
- name: Read search configuration
|
||||
id: config
|
||||
run: echo ::set-output name=config::$(cat algolia-config.json)
|
||||
|
||||
- name: Update search index
|
||||
uses: docker://algolia/documentation-scrapper
|
||||
env:
|
||||
APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
|
||||
API_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }}
|
||||
CONFIG: ${{ steps.config.outputs.config }}
|
||||
uses: darrenjennings/algolia-docsearch-action@master
|
||||
with:
|
||||
algolia_application_id: ${{ secrets.ALGOLIA_APPLICATION_ID }}
|
||||
algolia_api_key: ${{ secrets.ALGOLIA_ADMIN_KEY }}
|
||||
file: 'algolia-config.json'
|
||||
|
||||
14
.github/workflows/site.yml
vendored
14
.github/workflows/site.yml
vendored
@@ -32,13 +32,9 @@ jobs:
|
||||
branch: 'gh-pages'
|
||||
commit-message: "[CI] Publish Documentation for ${{ github.sha }}"
|
||||
|
||||
- name: Read search configuration
|
||||
id: config
|
||||
run: echo ::set-output name=config::$(cat algolia-config.json)
|
||||
|
||||
- name: Update search index
|
||||
uses: docker://algolia/documentation-scrapper
|
||||
env:
|
||||
APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
|
||||
API_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }}
|
||||
CONFIG: ${{ steps.config.outputs.config }}
|
||||
uses: darrenjennings/algolia-docsearch-action@master
|
||||
with:
|
||||
algolia_application_id: ${{ secrets.ALGOLIA_APPLICATION_ID }}
|
||||
algolia_api_key: ${{ secrets.ALGOLIA_ADMIN_KEY }}
|
||||
file: 'algolia-config.json'
|
||||
Reference in New Issue
Block a user