🕷️Algolia 搜索推送 #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🕷️Algolia 搜索推送 | |
on: | |
workflow_run: | |
workflows: ["🚀部署文档"] # 指定 deploy.yml 的 name | |
types: | |
- completed # 仅在 deploy.yml 完成后触发 | |
jobs: | |
algolia_crawl: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📋检查仓库 | |
uses: actions/checkout@v2 | |
- name: 🦖触发 Algolia 爬虫 | |
uses: algolia/algoliasearch-crawler-github-actions@v1 | |
with: | |
crawler-user-id: ${{ secrets.CRAWLER_USER_ID }} | |
crawler-api-key: ${{ secrets.CRAWLER_API_KEY }} | |
github-token: ${{ github.token }} | |
crawler-name: 'rrorangeandfriends' | |
algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }} | |
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }} | |
site-url: 'https://rrorangeandfriends.site/' |