t544h commited on
Commit
ae79867
·
1 Parent(s): 68b5c65

Ajout du workflow de déploiement continu vers Hugging Face

Browse files
Files changed (1) hide show
  1. .github/workflows/sync_to_hf.yml +22 -0
.github/workflows/sync_to_hf.yml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Spaces
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch: # Permet de lancer la synchronisation manuellement depuis l'interface GitHub si besoin
7
+
8
+ jobs:
9
+ sync-to-hub:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: 0
16
+ lfs: true
17
+
18
+ - name: Push to HF
19
+ env:
20
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
21
+ run: |
22
+ git push --force https://arij155:$HF_TOKEN@huggingface.co/spaces/arij155/cin-validator-service main