🧪 test: algolia 工作流支持-patch_3 #4
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 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 }} |