SAIF / .github /workflows /sync_to_hf.yml
NTThong0710
+
8bab17a
raw
history blame
633 Bytes
name: Sync to Hugging Face Spaces
on:
push:
branches: [main]
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Push to Hugging Face Spaces
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git remote add hf https://huggingface.co/spaces/thong0710/SAIF
git push --force https://thong0710:$HF_TOKEN@huggingface.co/spaces/thong0710/SAIF main