MUHAMMAD YOUSAF RANA commited on
Commit
f47d7ce
·
unverified ·
1 Parent(s): 70d156b

Update main.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +5 -0
.github/workflows/main.yml CHANGED
@@ -27,5 +27,10 @@ jobs:
27
  - name: Add remote
28
  run: git remote add huggingface https://huggingface.co/spaces/MYousafRana/Demo
29
 
 
 
 
 
 
30
  - name: Push to Hugging Face Space
31
  run: git push --force huggingface main
 
27
  - name: Add remote
28
  run: git remote add huggingface https://huggingface.co/spaces/MYousafRana/Demo
29
 
30
+ - name: Set up Hugging Face credentials
31
+ run: |
32
+ git config --global credential.helper store
33
+ echo "https://huggingface.co:${{ secrets.HG }}@huggingface.co" > ~/.git-credentials
34
+
35
  - name: Push to Hugging Face Space
36
  run: git push --force huggingface main