From f26e2d98d5f8b9e473dea584a0b091a91461e891 Mon Sep 17 00:00:00 2001 From: Jordan Herzstein Date: Thu, 5 Dec 2024 18:09:51 -0500 Subject: [PATCH] test --- .github/workflows/hugging-face-sync.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/hugging-face-sync.yml diff --git a/.github/workflows/hugging-face-sync.yml b/.github/workflows/hugging-face-sync.yml new file mode 100644 index 0000000..8a27446 --- /dev/null +++ b/.github/workflows/hugging-face-sync.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://jherzstein:$HF_TOKEN@huggingface.co/spaces/jherzstein/ HAM10000-Skin-Cancer-Classification/ main