David Andai commited on
Commit
22c509e
·
unverified ·
1 Parent(s): 3bdfedb

Create sync_to_hf.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/sync_to_hf.yml +24 -0
.github/workflows/sync_to_hf.yml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Space
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch: # Allows manual trigger from GitHub UI
7
+
8
+ jobs:
9
+ sync:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - name: Checkout repo
14
+ uses: actions/checkout@v3
15
+ with:
16
+ fetch-depth: 0
17
+ lfs: true
18
+
19
+ - name: Push to HF Space
20
+ env:
21
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
22
+ run: |
23
+ git remote add space "https://AndaiMD:${HF_TOKEN}@huggingface.co/spaces/AndaiMD/neuroXgpt"
24
+ git push space main --force