JDFPalladium commited on
Commit
361bd59
·
unverified ·
1 Parent(s): 2816172

Update main.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +4 -18
.github/workflows/main.yml CHANGED
@@ -21,22 +21,8 @@ jobs:
21
  run: |
22
  git config --global user.email "actions@github.com"
23
  git config --global user.name "GitHub Actions"
24
-
25
- - name: Clone HF repo without history (no large files)
26
- run: |
27
- git clone --depth=1 https://YoniFriedman:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/Nishauri/NuruCI hf_space
28
-
29
- - name: Copy files except arv_metadata
30
- run: |
31
- rsync -av --exclude='arv_metadata/' ./ hf_space/
32
-
33
- - name: Commit and push changes
34
  run: |
35
- cd hf_space
36
- git pull origin main --rebase
37
- cd ..
38
- rsync -av --exclude='arv_metadata/' ./ hf_space/
39
- cd hf_space
40
- git add .
41
- git commit -m "Deploy from GitHub Actions" || echo "No changes to commit"
42
- git push origin main
 
21
  run: |
22
  git config --global user.email "actions@github.com"
23
  git config --global user.name "GitHub Actions"
24
+
25
+ - name: Push to Hugging Face
 
 
 
 
 
 
 
 
26
  run: |
27
+ git remote add hf https://USERNAME:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/Nishauri/NuruCI
28
+ git push hf main --force