commit a0525f71a196ff27218fc2a32fdaa0a52d05aceb parent 0a1978b4973f46941d70f9b5337cd8931a3fd7da Author: Amit Dutta <mail@amit.is-a.dev> Date: Sun, 7 Jun 2026 16:29:08 +0530 Merge pull request #7 from notamitgamer/web_update Create sync-to-hf.yml for dataset synchronization Diffstat:
| A | .github/workflows/sync-to-hf.yml | | | 23 | +++++++++++++++++++++++ |
1 file changed, 23 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/sync-to-hf.yml b/.github/workflows/sync-to-hf.yml @@ -0,0 +1,23 @@ +name: Manual and Auto Sync to Hugging Face + +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + sync-dataset: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Force Sync to Hugging Face Dataset + env: + HF_TOKEN: ${{ secrets.HF_TOKEN }} + run: | + # Configures git and force-pushes the exact current repository state over to Hugging Face + git push --force https://notamitgamer:$HF_TOKEN@huggingface.co/datasets/notamitgamer/usercontent main:main