Spaces:
Configuration error
Configuration error
quanliangliu commited on
Add workflow to sync to Hugging Face Hub
Browse files
.github/workflows/sync-to-hf.yml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Sync to Hugging Face Hub
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches: [ main ]
|
| 6 |
+
workflow_dispatch:
|
| 7 |
+
|
| 8 |
+
jobs:
|
| 9 |
+
sync:
|
| 10 |
+
runs-on: ubuntu-latest
|
| 11 |
+
steps:
|
| 12 |
+
- uses: actions/checkout@v6
|
| 13 |
+
- uses: huggingface/hub-sync@v0.1.0
|
| 14 |
+
with:
|
| 15 |
+
github_repo_id: ${{ github.repository }}
|
| 16 |
+
huggingface_repo_id: quanliang/MatSciBot
|
| 17 |
+
hf_token: ${{ secrets.HF_TOKEN }}
|
| 18 |
+
repo_type: space
|