Brainded Kazuma commited on
Commit
5f4ae9a
·
unverified ·
1 Parent(s): 58c9745

Create hf.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/hf.yml +29 -0
.github/workflows/hf.yml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Hub
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ sync-to-hub:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v3
13
+ with:
14
+ fetch-depth: 0
15
+ lfs: true
16
+
17
+ - name: Set up Git
18
+ run: |
19
+ git config --global user.name "${{ github.actor }}"
20
+ git config --global user.email "${{ github.actor }}@users.noreply.github.com"
21
+
22
+ - name: Push to Hugging Face Hub
23
+ env:
24
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
25
+ run: |
26
+ git remote add huggingface https://xyz69:$HF_TOKEN@huggingface.co/spaces/xyz69/prono-api
27
+ git push huggingface main --force
28
+
29
+