Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjinzhe committed Jul 6, 2023
1 parent 1be3066 commit 72a99d2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/algolia.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: algolia
on:
push:
branches:
- main
- ts
jobs:
algolia:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get the content of algolia.json as config
id: algolia_config
run: echo "config=$(cat crawlerConfig.json | jq -r tostring)" >> $GITHUB_OUTPUT
- name: Push indices to Algolia
uses: signcl/docsearch-scraper-action@master
env:
APPLICATION_ID: ${{ secrets.ALGOLIA_APP_ID }}
API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
CONFIG: ${{ steps.algolia_config.outputs.config }}
#name: algolia
#on:
# push:
# branches:
# - main
# - ts
#jobs:
# algolia:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Get the content of algolia.json as config
# id: algolia_config
# run: echo "config=$(cat crawlerConfig.json | jq -r tostring)" >> $GITHUB_OUTPUT
# - name: Push indices to Algolia
# uses: signcl/docsearch-scraper-action@master
# env:
# APPLICATION_ID: ${{ secrets.ALGOLIA_APP_ID }}
# API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
# CONFIG: ${{ steps.algolia_config.outputs.config }}
12 changes: 12 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,15 @@ jobs:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1

- uses: actions/checkout@v3
- name: Get the content of algolia.json as config
id: algolia_config
run: echo "config=$(cat crawlerConfig.json | jq -r tostring)" >> $GITHUB_OUTPUT
- name: Push indices to Algolia
uses: signcl/docsearch-scraper-action@master
env:
APPLICATION_ID: ${{ secrets.ALGOLIA_APP_ID }}
API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
CONFIG: ${{ steps.algolia_config.outputs.config }}

0 comments on commit 72a99d2

Please sign in to comment.