dani-ange commited on
Commit
1c0fbe6
·
unverified ·
1 Parent(s): 6bcdc82

Update train-deploy.yaml

Browse files
.github/workflows/train-deploy.yaml CHANGED
@@ -35,14 +35,12 @@ jobs:
35
  HF_TOKEN: ${{ secrets.HUGGINGFACE_API_TOKEN }}
36
  run: huggingface-cli login --token $HF_TOKEN --add-to-git-credential
37
 
38
- - name: Download Model Repository
39
- run: huggingface-cli download danielle2003/diabeties-ml --repo-type space --local-dir diabetes-ml
40
  - name: Push `main` changes to `master`
41
  run: |
42
- git checkout master # Switch to master branch
43
- git pull origin master # Ensure latest master
44
  git merge --no-ff origin/main -m "Merging latest changes from main"
45
- git push origin master # Push changes to master
46
  - name: Deploy to Hugging Face
47
  env:
48
  HF_TOKEN: ${{ secrets.HUGGINGFACE_API_TOKEN }}
 
35
  HF_TOKEN: ${{ secrets.HUGGINGFACE_API_TOKEN }}
36
  run: huggingface-cli login --token $HF_TOKEN --add-to-git-credential
37
 
 
 
38
  - name: Push `main` changes to `master`
39
  run: |
40
+ git checkout master
41
+ git pull origin master
42
  git merge --no-ff origin/main -m "Merging latest changes from main"
43
+ git push origin master
44
  - name: Deploy to Hugging Face
45
  env:
46
  HF_TOKEN: ${{ secrets.HUGGINGFACE_API_TOKEN }}