ilang-ai commited on
Commit
f3b55d2
·
1 Parent(s): cc6f785

add datasets sync workflow

Browse files
.github/workflows/sync-hf-datasets.yml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to HuggingFace Datasets
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ jobs:
8
+ sync:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ with:
13
+ fetch-depth: 0
14
+ lfs: true
15
+
16
+ - name: Push to HuggingFace Datasets
17
+ env:
18
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
+ run: |
20
+ git remote add hf-datasets https://i-Lang:${HF_TOKEN}@huggingface.co/datasets/i-Lang/TelegramGuard || true
21
+ git push hf-datasets main --force