File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change 1
- name : Sync with Hugging Face Hub
1
+ name : Push Production to HuggingFace
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - main
5
+ branches : [main]
6
+
7
+ # run this workflow manuall from the Actions tab
8
+ workflow_dispatch :
7
9
8
10
jobs :
9
- build :
11
+ sync-to-hub :
10
12
runs-on : ubuntu-latest
11
13
steps :
12
- - name : Sync with Hugging Face
13
-
14
- with :
15
- github_repo_id : DL4DS/dl4ds_tutor
16
- huggingface_repo_id : dl4ds/dl4ds_tutor
17
- repo_type : space
18
- space_sdk : static
19
- hf_token : ${{ secrets. HF_TOKEN }}
14
+ - uses : actions/checkout@v4
15
+ with :
16
+ fetch-depth : 0
17
+ lfs : true
18
+ - name : Deploy Production (main) to HuggingFace
19
+ env :
20
+ HF_TOKEN : ${{ secrets.HF_TOKEN }}
21
+ run : git push --force https://trgardos:$ HF_TOKEN@huggingface.co/spaces/dl4ds/dl4ds_tutor main:main
You can’t perform that action at this time.
0 commit comments