Skip to content

🧪 test: algolia 工作流支持-patch_3 #4

🧪 test: algolia 工作流支持-patch_3

🧪 test: algolia 工作流支持-patch_3 #4

Workflow file for this run

name: Algolia Recrawl
on:
push:
branches:
- main # 在推送到 main 分支时触发
jobs:
algolia_crawl:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Prepare Algolia DocSearch config
run: |
echo '${{ secrets.ALGOLIA_CONFIG }}' > config.json
cat config.json
- name: Trigger Algolia Crawler
uses: algolia/algoliasearch-crawler-github-actions@v1
with:
crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
site-url: 'https://rrorangeandfriends.site/'
env:
CONFIG: ${{ steps.algolia_config.outputs.config }}