Merge pull request #154 from awell-health/source_control #68
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: Push docs to MarkPrompt | |
on: | |
push: | |
branches: | |
- main | |
env: | |
MARKPROMPT_TOKEN: ${{ secrets.MARKPROMPT_TOKEN }} | |
jobs: | |
upload-docs: | |
name: Upload Docs to MarkPrompt to train | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Zip Docs | |
run: zip data.zip `find . -name "*.mdx"` | |
- name: Upload docs to MarkPrompt | |
run: | | |
curl https://api.markprompt.com/v1/train \ | |
-X POST \ | |
-H "Authorization: Bearer ${{ env.MARKPROMPT_TOKEN }}" \ | |
-H "Content-Type: application/zip" \ | |
--data-binary @data.zip |