pratikcsv commited on
Commit
385b66d
·
1 Parent(s): bcc01a6

reverted back to the working gitA

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +13 -8
.github/workflows/main.yml CHANGED
@@ -4,7 +4,6 @@ on:
4
  branches: [main]
5
 
6
  # to run this workflow manually from the Actions tab
7
-
8
  workflow_dispatch:
9
 
10
  jobs:
@@ -22,10 +21,16 @@ jobs:
22
  - name: Remove large file from history
23
  run: git filter-repo --path "Rag_Documents/layout-parser-paper.pdf" --invert-paths --force
24
 
25
- - name: Push to Hugging Face Spaces
26
- uses: huggingface/huggingface_hub@main
27
- with:
28
- target_repo: bpratik/Chatbot
29
- token: ${{ secrets.HF_TOKEN }}
30
- repo_type: space
31
- space_sdk: streamlit
 
 
 
 
 
 
 
4
  branches: [main]
5
 
6
  # to run this workflow manually from the Actions tab
 
7
  workflow_dispatch:
8
 
9
  jobs:
 
21
  - name: Remove large file from history
22
  run: git filter-repo --path "Rag_Documents/layout-parser-paper.pdf" --invert-paths --force
23
 
24
+ - name: Log in to Hugging Face Hub
25
+ env:
26
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
27
+ run: |
28
+ pip install -U "huggingface_hub>=0.20.0"
29
+ git config --global credential.helper store
30
+ echo "https://bpratik:$HF_TOKEN@huggingface.co" > ~/.git-credentials
31
+ - name: Push to hub
32
+ env:
33
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
34
+ run: |
35
+ git remote add hf https://huggingface.co/spaces/bpratik/Chatbot
36
+ git push --force hf main