frkhan commited on
Commit
a11030c
·
unverified ·
1 Parent(s): 2e4cb4f

Create sync-to-hf.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/sync-to-hf.yml +22 -0
.github/workflows/sync-to-hf.yml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # .github/workflows/sync-to-hf.yml
2
+ name: Sync to Hugging Face Spaces
3
+
4
+ on:
5
+ workflow_dispatch:
6
+
7
+ jobs:
8
+ sync-to-hub:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ with:
13
+ fetch-depth: 0
14
+ lfs: true
15
+ - name: Push Source Code From Github to Hugging Face Spaces
16
+ env:
17
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
18
+ run: |
19
+ git config --global user.email "frkhan@example.com"
20
+ git config --global user.name "F R Khan"
21
+ git remote add space https://huggingface.co/spaces/frkhan/semantic-search-app
22
+ git push --force https://frkhan:$HF_TOKEN@huggingface.co/spaces/frkhan/semantic-search-app main