ribesstefano commited on
Commit
9f57ca7
1 Parent(s): fee889a

Update huggingface_space_sync.yml

Browse files
.github/workflows/huggingface_space_sync.yml CHANGED
@@ -2,6 +2,7 @@ name: Sync to Hugging Face Hub
2
  on:
3
  push:
4
  branches: [main]
 
5
  workflow_dispatch:
6
 
7
  jobs:
@@ -12,17 +13,11 @@ jobs:
12
  with:
13
  fetch-depth: 0
14
  lfs: true
15
-
16
- # Add Hugging Face as a remote
17
- - name: Add Hugging Face remote
18
- run: git remote add hf https://ailab-bio:$HF_TOKEN@huggingface.co/spaces/ailab-bio/PROTAC-Degradation-Predictor
19
-
20
- # Pull changes using merge strategy
21
- - name: Pull from Hugging Face with merge
22
- run: git pull hf main --no-rebase
23
-
24
- # Push changes to Hugging Face after resolving any conflicts
25
- - name: Push to Hugging Face
26
  env:
27
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
28
- run: git push hf main
 
2
  on:
3
  push:
4
  branches: [main]
5
+ # to run this workflow manually from the Actions tab
6
  workflow_dispatch:
7
 
8
  jobs:
 
13
  with:
14
  fetch-depth: 0
15
  lfs: true
16
+
17
+ - name: Pull changes from remote
18
+ run: git pull https://ailab-bio:$HF_TOKEN@huggingface.co/spaces/ailab-bio/PROTAC-Degradation-Predictor main --no-rebase
19
+
20
+ - name: Push to hub
 
 
 
 
 
 
21
  env:
22
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
23
+ run: git push https://ailab-bio:$HF_TOKEN@huggingface.co/spaces/ailab-bio/PROTAC-Degradation-Predictor main