marintosti12 commited on
Commit
bf38803
·
1 Parent(s): 7deedda

rework deploy

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy.yaml +13 -0
.github/workflows/deploy.yaml CHANGED
@@ -38,6 +38,19 @@ jobs:
38
  echo "HF secrets manquants, on skip le déploiement."
39
  exit 0
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  - name: Configure Git
42
  run: |
43
  git config --global user.email "${HF_GIT_EMAIL}"
 
38
  echo "HF secrets manquants, on skip le déploiement."
39
  exit 0
40
 
41
+ - name: Prepare snapshot (no binaries)
42
+ shell: bash
43
+ run: |
44
+ # Ignore les artefacts ML (au cas où)
45
+ printf "\n# ML artifacts\n*.joblib\n*.pkl\n*.pt\n*.onnx\n" >> .gitignore
46
+ git rm -r --cached notebook/*.joblib || true
47
+
48
+ # Crée une branche SANS historique avec l'état courant
49
+ git switch --orphan hfdeploy
50
+ git add -A
51
+ git commit -m "Space deploy snapshot ${GITHUB_SHA}"
52
+
53
+
54
  - name: Configure Git
55
  run: |
56
  git config --global user.email "${HF_GIT_EMAIL}"