jeysshon commited on
Commit
f411e88
·
unverified ·
1 Parent(s): 9c0ce3d

Create deploy_to_hf.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy_to_hf.yml +26 -0
.github/workflows/deploy_to_hf.yml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Deploy to Hugging Face Space
2
+
3
+ on:
4
+ push:
5
+ branches: ["main", "master"]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ with:
14
+ fetch-depth: 0
15
+
16
+ - name: Push to Hugging Face
17
+ env:
18
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
+ run: |
20
+ git config user.name "github-actions"
21
+ git config user.email "github-actions@github.com"
22
+
23
+ git remote add hf https://user:${HF_TOKEN}@huggingface.co/spaces/jeysshon/Change
24
+
25
+ # manda el código de tu repo al Space (branch main del Space)
26
+ git push hf HEAD:main --force