Suraj Yadav commited on
Commit
6f6c293
·
1 Parent(s): 77894a0

gitgub action code for deployment to HF Spaces

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yaml +21 -0
.github/workflows/main.yaml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Spaces
2
+ on:
3
+ push:
4
+ branches: [main]
5
+
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ sync-to-hub:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - name: Download latest code from GitHub
14
+ uses: actions/checkout@v3
15
+
16
+ - name: Push the Code to Hugging Face Spaces
17
+ env:
18
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
+ run: git push --force https://Suraj-Yadav:$HF_TOKEN@https://huggingface.co/spaces/Suraj-Yadav/Basic-Chatbot-LangGraph main
20
+
21
+