Anish-530 commited on
Commit
9e1fb8a
·
1 Parent(s): ca21c7f
Files changed (1) hide show
  1. .github/workflows/sync_to_hf.yml +26 -0
.github/workflows/sync_to_hf.yml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Hub
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ # Allows you to run this workflow manually from the Actions tab
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ sync-to-hub:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout Code
14
+ uses: actions/checkout@v3
15
+ with:
16
+ fetch-depth: 0
17
+ lfs: true
18
+
19
+ - name: Push to Hugging Face
20
+ env:
21
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
22
+ run: |
23
+ git config --global user.email "bot@example.com"
24
+ git config --global user.name "Deployment Bot"
25
+ git remote add hf https://Anish530:$HF_TOKEN@huggingface.co/spaces/Anish530/Spotix-API
26
+ git push --force hf main