Spaces:
Runtime error
Runtime error
:pencil: [CI] Sync to Huggingface hub with github workflows
Browse files
.github/workflows/.prettierrc
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"tabWidth": 4,
|
3 |
+
"overrides": [
|
4 |
+
{
|
5 |
+
"files": "*.yml",
|
6 |
+
"options": {
|
7 |
+
"tabWidth": 2
|
8 |
+
}
|
9 |
+
}
|
10 |
+
]
|
11 |
+
}
|
.github/workflows/sync_to_hf_space.yml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to Hugging Face hub
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
paths:
|
5 |
+
- "configs/config.json"
|
6 |
+
- "Dockerfile"
|
7 |
+
- ".github/workflows/sync_to_hf_space.yml"
|
8 |
+
- "requirements.txt"
|
9 |
+
workflow_dispatch:
|
10 |
+
|
11 |
+
jobs:
|
12 |
+
sync-to-hub:
|
13 |
+
runs-on: ubuntu-latest
|
14 |
+
steps:
|
15 |
+
- uses: actions/checkout@v4
|
16 |
+
with:
|
17 |
+
fetch-depth: 0
|
18 |
+
lfs: true
|
19 |
+
ref: main
|
20 |
+
- name: Push to hub
|
21 |
+
env:
|
22 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
23 |
+
run: git push -f https://Hansimov:[email protected]/spaces/Hansimov/data-proxy-api main:main
|