Skip to content

更新 README.md

更新 README.md #114

name: docsearch抓取
on:
push:
branches:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
jobs:
deploy:
name: docsearch抓取
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
node-version: 18
cache: yarn
- name: docsearch抓取
env:
APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
run: |
docker run \
-e APPLICATION_ID -e API_KEY \
-e CONFIG="$(cat .github/scrapeConfig/docusaurus-v2.json)" \
algolia/docsearch-scraper