studyflow-ai / .github /workflows /sync-huggingface.yml
ashish-soni08's picture
ci: sync main to Hugging Face Space
e1f84b0
Raw
History Blame Contribute Delete
652 Bytes
name: Sync Hugging Face Space
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: sync-hugging-face-space
cancel-in-progress: true
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Push main to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add space "https://ashish-soni08:${HF_TOKEN}@huggingface.co/spaces/build-small-hackathon/studyflow-ai"
git push --force space main