RoyAalekh commited on
Commit
9de43b7
·
1 Parent(s): 07fb80f

added github workflow for hugging face space deployment

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy_to_hf.yaml +23 -0
.github/workflows/deploy_to_hf.yaml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Deploy to Hugging Face Space
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: 0
16
+ lfs: true
17
+
18
+ - name: Push to Hugging Face Space
19
+ env:
20
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
21
+ run: |
22
+ git remote add space https://RoyAalekh:$HF_TOKEN@huggingface.co/spaces/RoyAalekh/hackathon_code4change
23
+ git push --force space main