From a52844cca8827d19e71217e89e3616ca9dc080a3 Mon Sep 17 00:00:00 2001 From: Steffen Cruz Date: Thu, 4 Apr 2024 17:42:23 -0600 Subject: [PATCH] Create hf_space.yml --- .github/workflows/hf_space.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/hf_space.yml diff --git a/.github/workflows/hf_space.yml b/.github/workflows/hf_space.yml new file mode 100644 index 0000000..56d56de --- /dev/null +++ b/.github/workflows/hf_space.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://HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/HF_USERNAME/SPACE_NAME main