ugaray96 commited on
Commit
461bd3f
·
unverified ·
1 Parent(s): 9019ff0

Create sync_huggingface_hub_from_branch.yml

Browse files
.github/workflows/sync_huggingface_hub_from_branch.yml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub from branch
2
+ on:
3
+ # to run this workflow manually from the Actions tab
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ sync-to-hub:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v2
11
+ with:
12
+ fetch-depth: 0
13
+ - name: Branch name
14
+ run: echo running on branch ${GITHUB_REF_NAME}
15
+ - name: Push to hub
16
+ env:
17
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
18
+ run: |
19
+ git push https://ugaray96:[email protected]/spaces/ugaray96/neural-search ${GITHUB_REF_NAME}