UdasriHasindu commited on
Commit
1be6770
·
1 Parent(s): 89791b7

fix action

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy.yml +2 -4
.github/workflows/deploy.yml CHANGED
@@ -2,8 +2,7 @@ name: Sync to Hugging Face Spaces
2
 
3
  on:
4
  push:
5
- branches:
6
- - main
7
  # Allows you to trigger this workflow manually from the Actions tab
8
  workflow_dispatch:
9
 
@@ -24,5 +23,4 @@ jobs:
24
  HF_USERNAME: xplorers
25
  SPACE_NAME: MIS_API
26
  run: |
27
- git remote add space https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME
28
- git push --force space main
 
2
 
3
  on:
4
  push:
5
+ branches: [main, master]
 
6
  # Allows you to trigger this workflow manually from the Actions tab
7
  workflow_dispatch:
8
 
 
23
  HF_USERNAME: xplorers
24
  SPACE_NAME: MIS_API
25
  run: |
26
+ git push --force "https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME"