marintosti12 commited on
Commit
ccf0a60
·
1 Parent(s): c2080fe

fix(deploy) : config and file

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy.yaml +0 -22
.github/workflows/deploy.yaml CHANGED
@@ -44,28 +44,6 @@ jobs:
44
  git config user.email "${HF_GIT_EMAIL:-actions@github.com}"
45
  git config user.name "${HF_GIT_NAME:-github-actions}"
46
 
47
- - name: Prepare snapshot (no history, no binaries)
48
- shell: bash
49
- run: |
50
- # 1) Branche orpheline
51
- git switch --orphan hfdeploy
52
- git reset
53
-
54
- # 2) Ignore les artefacts ML
55
- printf "\n# ML artifacts\n*.joblib\n*.pkl\n*.pt\n*.onnx\n" >> .gitignore
56
-
57
- # 3) Retire de l'index si jamais ça match (silencieux sinon)
58
- git rm -r --cached --ignore-unmatch -- notebook/*.joblib
59
-
60
- # 4) Commit de la snapshot
61
- git add -A
62
- git commit -m "Space deploy snapshot ${GITHUB_SHA}"
63
-
64
- - name: Configure Git
65
- run: |
66
- git config --global user.email "${HF_GIT_EMAIL}"
67
- git config --global user.name "${HF_GIT_NAME}"
68
-
69
  - name: Push to Space
70
  run: |
71
  SPACE_URL_AUTH=$(echo "$HF_SPACE_URL" | sed "s#https://#https://user:${HF_TOKEN}@#")
 
44
  git config user.email "${HF_GIT_EMAIL:-actions@github.com}"
45
  git config user.name "${HF_GIT_NAME:-github-actions}"
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  - name: Push to Space
48
  run: |
49
  SPACE_URL_AUTH=$(echo "$HF_SPACE_URL" | sed "s#https://#https://user:${HF_TOKEN}@#")