alamin655 commited on
Commit
b5c4817
1 Parent(s): a115724

Create deploy.yml

Browse files
Files changed (1) hide show
  1. deploy.yml +30 -0
deploy.yml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: 2.1
2
+
3
+ workflows:
4
+ main:
5
+ jobs:
6
+ - sync-to-huggingface:
7
+ context:
8
+ - HuggingFace
9
+ filters:
10
+ branches:
11
+ only:
12
+ - main
13
+
14
+ jobs:
15
+ sync-to-huggingface:
16
+ docker:
17
+ - image: alpine
18
+ resource_class: small
19
+ steps:
20
+ - run:
21
+ name: install git
22
+ command: apk update && apk add openssh-client git
23
+ - checkout
24
+ - run:
25
+ name: push to Huggingface hub
26
+ command: |
27
+ git config http.postBuffer 524288000
28
+ git config user.email "<[email protected]>"
29
+ git config user.name "<alamin655>"
30
+ git push -f https://alamin655:${HF_PERSONAL_TOKEN}@huggingface.co/spaces/alamin655/spacex main