Spaces:
Sleeping
Sleeping
Xiao
commited on
Commit
·
93b0105
1
Parent(s):
1d37093
add workflow file
Browse files- .github/workflows/ci.yml +23 -0
.github/workflows/ci.yml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to Hugging Face hub
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
branches: [nginx]
|
5 |
+
#test from xiao's bigbigtail account
|
6 |
+
# to run this workflow manually from the Actions tab
|
7 |
+
workflow_dispatch:
|
8 |
+
|
9 |
+
jobs:
|
10 |
+
sync-to-hub:
|
11 |
+
runs-on: ubuntu-latest
|
12 |
+
steps:
|
13 |
+
- uses: actions/checkout@v3
|
14 |
+
with:
|
15 |
+
fetch-depth: 0
|
16 |
+
- name: Push to huggingface hub
|
17 |
+
env:
|
18 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
19 |
+
HF_USERNAME: luminlab-adapt
|
20 |
+
HF_SPACENAME: nginx
|
21 |
+
LOCAL_BRANCH: nginx
|
22 |
+
HF_REMOTE_BRANCH: main
|
23 |
+
run: git push https://$HF_USERNAME:[email protected]/spaces/$HF_USERNAME/$HF_SPACENAME $LOCAL_BRANCH:$HF_REMOTE_BRANCH -f
|