Fashion_Recommender_System / .github /workflows /sync_to_hugging_face.yml
Manasa B Rao
Update sync_to_hugging_face.yml
767e930 unverified
name: Sync to Hugging Face Hub
on:
push:
branches: [main]
# to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
lfs: true
fetch-depth: 0 # Fetch the full history
- name: Set up Git
run: |
git config --global user.email "manasabrao2020@gmail.com"
git config --global user.name "Manasa B Rao"
- name: Set up Git LFS
run: |
git lfs install
git lfs fetch --all
git lfs pull
- name: Push to Hugging Face Hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add huggingface https://huggingface.co/spaces/Manasa1/Fashion_Recommender_System
git push --force https://Manasa1:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/Manasa1/Fashion_Recommender_System main