diff --git a/.github/workflows/huggingface.yml b/.github/workflows/huggingface.yml new file mode 100644 index 0000000..ea0ad47 --- /dev/null +++ b/.github/workflows/huggingface.yml @@ -0,0 +1,38 @@ +name: Push Production to HuggingFace + + + +on: + + push: + + branches: [dan_dev] + + # run this workflow manualy from the Actions tab + + workflow_dispatch: + + +jobs: + + sync-to-hub: + + runs-on: ubuntu-latest + + steps: + + - uses: actions/checkout@v4 + + with: + + fetch-depth: 0 + + lfs: true + + - name: Deploy Production (dan_dev) to HuggingFace + + env: + + HF_TOKEN: ${{ secrets.HF_TOKEN }} + + run: git push --force https://DF38:$HF_TOKEN@huggingface.co/spaces/LibRAG/