Spaces:
Sleeping
Sleeping
Yian Wang
commited on
Commit
·
b7a646c
1
Parent(s):
5b37946
Add sync to hf workflow
Browse files- .github/workflows/sync.yaml +25 -0
.github/workflows/sync.yaml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Sync to Hugging Face hub
|
| 2 |
+
on:
|
| 3 |
+
push:
|
| 4 |
+
branches: [main]
|
| 5 |
+
paths-ignore:
|
| 6 |
+
- '.github/**'
|
| 7 |
+
|
| 8 |
+
pull_request:
|
| 9 |
+
branches: [main]
|
| 10 |
+
|
| 11 |
+
# to run this workflow manually from the Actions tab
|
| 12 |
+
workflow_dispatch:
|
| 13 |
+
|
| 14 |
+
jobs:
|
| 15 |
+
sync-to-hub:
|
| 16 |
+
runs-on: ubuntu-latest
|
| 17 |
+
steps:
|
| 18 |
+
- uses: actions/checkout@v3
|
| 19 |
+
with:
|
| 20 |
+
fetch-depth: 0
|
| 21 |
+
lfs: true
|
| 22 |
+
- name: Push to hub
|
| 23 |
+
env:
|
| 24 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 25 |
+
run: git push https://StarPigeon:[email protected]/spaces/StarPigeon/ViDove main
|