fahadcr14 commited on
Commit
98318ba
·
1 Parent(s): d3a8232
Files changed (1) hide show
  1. .github/workflows/main.yml +11 -11
.github/workflows/main.yml CHANGED
@@ -24,26 +24,26 @@ jobs:
24
  - name: Install dependencies
25
  run: |
26
  pip install --no-cache-dir -r requirements.txt
 
 
27
  - name: Configure Git User
28
  run: |
29
  git config --global user.name "Fahad Khan"
30
  git config --global user.email "[email protected]"
31
 
32
-
33
- # Step 4: Authenticate Hugging Face CLI
34
  - name: Authenticate Hugging Face CLI
35
  env:
36
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
37
  run: huggingface-cli login --token $HF_TOKEN
38
 
39
- # Step 5: Push application files to Hugging Face Spac
40
  - name: Push Files to Hugging Face Space
41
  env:
42
- HF_TOKEN: ${{ secrets.HF_TOKEN }}
43
-
44
- run: |
45
- git pull https://fahd9999:$HF_TOKEN@huggingface.co/spaces/fahd9999/resultprediction main || true
46
- git checkout --ours . || true
47
- git add . || true
48
- git commit -m "Auto-resolve conflicts in workflow" || true
49
- git push https://fahd9999:[email protected]/spaces/fahd9999/resultprediction main || true
 
24
  - name: Install dependencies
25
  run: |
26
  pip install --no-cache-dir -r requirements.txt
27
+
28
+ # Step 4: Configure Git User
29
  - name: Configure Git User
30
  run: |
31
  git config --global user.name "Fahad Khan"
32
  git config --global user.email "[email protected]"
33
 
34
+ # Step 5: Authenticate Hugging Face CLI
 
35
  - name: Authenticate Hugging Face CLI
36
  env:
37
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
38
  run: huggingface-cli login --token $HF_TOKEN
39
 
40
+ # Step 6: Push application files to Hugging Face Space
41
  - name: Push Files to Hugging Face Space
42
  env:
43
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
44
+ run: |
45
+ git pull https://fahd9999:[email protected]/spaces/fahd9999/resultprediction main || true
46
+ git checkout --ours . || true
47
+ git add . || true
48
+ git commit -m "Auto-resolve conflicts in workflow" || true
49
+ git push https://fahd9999:[email protected]/spaces/fahd9999/resultprediction main || true