zaidmehdi commited on
Commit
9cc199b
·
unverified ·
1 Parent(s): f97a9ff

Create main.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +25 -0
.github/workflows/main.yml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ pull_request:
6
+ branches: [ "main" ]
7
+
8
+ # to run this workflow manually from the Actions tab
9
+ workflow_dispatch:
10
+
11
+ jobs:
12
+ sync-to-hub:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v3
16
+ with:
17
+ fetch-depth: 0
18
+ - name: Add remote
19
+ env:
20
+ HF: ${{ secrets.HUGGINGFACE }}
21
+ run: git remote add space https://huggingface.co/spaces/zaidmehdi/arabic-dialect-classifier
22
+ - name: Push to hub
23
+ env:
24
+ HF: ${{ secrets.HUGGINGFACE }}
25
+ run: git push --force https://huggingface.co/spaces/zaidmehdi/arabic-dialect-classifier