Mostafa174 commited on
Commit
5e27b5c
·
1 Parent(s): ed0c183

fixing workflow error

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy_to_hf.yml +13 -7
.github/workflows/deploy_to_hf.yml CHANGED
@@ -1,16 +1,22 @@
1
- name: Deploy to Hugging Face Space
 
2
  on:
3
  push:
4
  branches:
5
  - main
 
 
6
  jobs:
7
- deploy:
8
  runs-on: ubuntu-latest
9
  steps:
10
  - uses: actions/checkout@v3
11
- - name: Push to Hugging Face Space
12
- uses: huggingface/hub-actions@v1
13
  with:
14
- repo-token: ${{ secrets.HF_TOKEN }}
15
- repo-id: Mostafa174/Topic_Modeling_AI
16
- repo-type: space
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Space
2
+
3
  on:
4
  push:
5
  branches:
6
  - main
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
+ - name: Push to hub
18
+ env:
19
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
20
+ run: |
21
+ git remote add space https://huggingface.co/spaces/Mostafa174/Topic_Modeling_AI
22
+ git push --force space main