Lenson commited on
Commit
c976936
·
1 Parent(s): dc823a9

feat: add GitHub Actions for HF sync

Browse files
Files changed (1) hide show
  1. .github/workflows/sync-to-hf.yml +20 -0
.github/workflows/sync-to-hf.yml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Space
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ sync:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ with:
14
+ fetch-depth: 0
15
+
16
+ - name: Push to Hugging Face
17
+ env:
18
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
+ run: |
20
+ git push -f https://lenson78:$HF_TOKEN@huggingface.co/spaces/lenson78/scrapling main