mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 17:18:40 +08:00
Create aloglia.yml
This commit is contained in:
parent
1e8f437605
commit
154a59b193
18
.github/workflows/aloglia.yml
vendored
Normal file
18
.github/workflows/aloglia.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
name: Algolia Upload Records
|
||||
on:
|
||||
[push] #推送时执行
|
||||
jobs:
|
||||
algolia:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Get the content of algolia.json as config
|
||||
id: algolia_config
|
||||
run: echo "::set-output name=config::$(cat algolia.json | jq -r tostring)"
|
||||
- name: Push indices to Algolia
|
||||
uses: signcl/docsearch-scraper-action@master
|
||||
env:
|
||||
APPLICATION_ID: ${{ secrets.APPLICATION_ID }}
|
||||
API_KEY: ${{ secrets.API_KEY }}
|
||||
CONFIG: ${{ steps.algolia_config.outputs.config }}
|
||||
Loading…
x
Reference in New Issue
Block a user