Skip to content

Commit

Permalink
sync to midsearch in GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaoz committed May 30, 2023
1 parent c81189e commit 5c166f0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: sync

on:
push:
branches:
- main

jobs:
midsearch:
name: midsearch
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- name: Install dependencies
run: pip install git+https://github.com/gorse-io/midsearch.git
- name: Sync to Midsearch
run: midsearch sync src/docs/master
env:
MIDSEARCH_ENDPOINT: ${{ secrets.MIDSEARCH_ENDPOINT }}
MIDSEARCH_API_KEY: ${{ secrets.MIDSEARCH_API_KEY }}

0 comments on commit 5c166f0

Please sign in to comment.