Duan Shuo commited on
Commit
074db6f
·
1 Parent(s): 9e28a6b

Fixed deploy.yml syntax and push command

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy.yml +18 -15
.github/workflows/deploy.yml CHANGED
@@ -1,18 +1,21 @@
1
  name: Sync to Hugging Face hub
 
2
  on:
3
- push:
4
- branches: [main]
5
- # to run this workflow manually from the Actions tab
6
- workflow_dispatch:
 
7
  jobs:
8
- sync-to-hub:
9
- runs-on: ubuntu-latest
10
- steps:
11
- - uses: actions/checkout@v3
12
- with:
13
- fetch-depth: 0
14
- lfs: true
15
- - name: Push to hub
16
- env:
17
- HF_TOKEN: ${{ secrets.HF_TOKEN }}
18
- run: git push -–force https://xldzha:$HF_TOKEN@huggingface.co/spaces/xldzha/FinTech-Self-Learning-Project main
 
 
1
  name: Sync to Hugging Face hub
2
+
3
  on:
4
+ push:
5
+ branches: [main]
6
+ # Allow manual triggering from GitHub Actions tab
7
+ workflow_dispatch:
8
+
9
  jobs:
10
+ sync-to-hub:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: 0
16
+ lfs: true
17
+
18
+ - name: Push to Hugging Face Hub
19
+ env:
20
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
21
+ run: git push --force https://xldzha:$HF_TOKEN@huggingface.co/spaces/xldzha/FinTech-Self-Learning-Project main