mhdzumair commited on
Commit
89a7571
1 Parent(s): 4c7e75d

Create hf.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/hf.yml +28 -0
.github/workflows/hf.yml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+
6
+ jobs:
7
+ push_to_huggingface:
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - name: Checkout
12
+ uses: actions/checkout@v4
13
+ with:
14
+ fetch-depth: 0
15
+
16
+ - name: Configure Git
17
+ env:
18
+ GIT_NAME: ${{ secrets.GIT_NAME }}
19
+ GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
20
+ run: |
21
+ git config --global user.name "$GIT_NAME"
22
+ git config --global user.email "$GIT_EMAIL"
23
+
24
+ - name: Push to Hugging Face
25
+ env:
26
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
27
+ run: |
28
+ git push https://mhdzumair:[email protected]/spaces/mhdzumair/mediaflow-proxy main -f