Babu Pallam
Add Hugging Face sync workflow
2b7798c
Raw
History Blame Contribute Delete
612 Bytes
name: Sync to Hugging Face Spaces
on:
push:
branches: [main] # Change to master if your default branch is master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Push to Hub
env:
HF_TOKEN: ${{ secrets.KNOWFLOW_HF }}
run: |
git push --force https://oauth2:$HF_TOKEN@huggingface.co/spaces/babupallam/knowflow-ai-rag-document-chatbot main