Spaces:
Running
Running
update github actions
Browse files
.github/workflows/sync-hf.yaml
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
name: Sync to Hugging Face hub
|
|
|
2 |
on:
|
3 |
push:
|
4 |
-
branches: [
|
5 |
|
6 |
# to run this workflow manually from the Actions tab
|
7 |
workflow_dispatch:
|
@@ -14,6 +15,11 @@ jobs:
|
|
14 |
with:
|
15 |
fetch-depth: 0
|
16 |
lfs: true
|
|
|
|
|
|
|
|
|
|
|
17 |
- name: Push to hub
|
18 |
env:
|
19 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
|
1 |
name: Sync to Hugging Face hub
|
2 |
+
|
3 |
on:
|
4 |
push:
|
5 |
+
branches: [main]
|
6 |
|
7 |
# to run this workflow manually from the Actions tab
|
8 |
workflow_dispatch:
|
|
|
15 |
with:
|
16 |
fetch-depth: 0
|
17 |
lfs: true
|
18 |
+
|
19 |
+
# Check out the branch you want to push (e.g., space)
|
20 |
+
# - name: Checkout space branch
|
21 |
+
# run: git checkout space
|
22 |
+
|
23 |
- name: Push to hub
|
24 |
env:
|
25 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|