From 089fdd03ad9512172bf3902b8374a05df9d11d34 Mon Sep 17 00:00:00 2001 From: Balaji <106472755+jibala-1022@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:44:12 +0530 Subject: [PATCH] Create sync_to_hf_hub.yml --- .github/workflows/sync_to_hf_hub.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/sync_to_hf_hub.yml diff --git a/.github/workflows/sync_to_hf_hub.yml b/.github/workflows/sync_to_hf_hub.yml new file mode 100644 index 0000000..c649167 --- /dev/null +++ b/.github/workflows/sync_to_hf_hub.yml @@ -0,0 +1,20 @@ +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: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + lfs: true + - name: Push to hub + env: + HF_TOKEN: ${{ secrets.HF_TOKEN }} + run: git push https://jibala-1022:$HF_TOKEN@huggingface.co/spaces/jibala-1022/EasyRec-Movie-Recommender main