maximedenes commited on
Commit
999901a
Β·
unverified Β·
2 Parent(s): 2817b5d 2c70d09

Merge pull request #5 from leaderboard-modeles-IA-francais/add-prod-monitoring

Browse files
.github/workflows/cd.yml CHANGED
@@ -1,4 +1,5 @@
1
  name: Sync to Hugging Face hub
 
2
  on:
3
  push:
4
  branches: [main]
 
1
  name: Sync to Hugging Face hub
2
+ concurrency: development
3
  on:
4
  push:
5
  branches: [main]
.github/workflows/prod.yml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Deployment to production (Hugging Face)
2
+ concurrency: production
3
+ on:
4
+ # to run this workflow manually from the Actions tab
5
+ workflow_dispatch:
6
+
7
+ jobs:
8
+ sync-to-hub:
9
+ runs-on: ubuntu-latest
10
+ environment: production
11
+ steps:
12
+ - uses: actions/checkout@v3
13
+ with:
14
+ fetch-depth: 0
15
+ lfs: true
16
+ - name: Push to hub
17
+ env:
18
+ HF_USERNAME: ${{ vars.HF_USERNAME }}
19
+ HF_ORGANIZATION: ${{ vars.HF_ORGANIZATION }}
20
+ SPACE_NAME: ${{ vars.SPACE_NAME }}
21
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
22
+ run: git push https://$HF_USERNAME:[email protected]/spaces/$HF_ORGANIZATION/$SPACE_NAME main