Spaces:
Sleeping
Sleeping
qqubb
commited on
Update main.yml
Browse files- .github/workflows/main.yml +13 -4
.github/workflows/main.yml
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
-
name: Sync to Hugging Face
|
|
|
2 |
on:
|
3 |
push:
|
4 |
-
branches: main
|
5 |
|
6 |
-
#
|
7 |
workflow_dispatch:
|
8 |
|
9 |
jobs:
|
@@ -14,7 +15,15 @@ jobs:
|
|
14 |
with:
|
15 |
fetch-depth: 0
|
16 |
lfs: true
|
17 |
-
|
|
|
|
|
18 |
env:
|
19 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
run: git push https://billmarino:[email protected]/spaces/camlsys/compliancecards main
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to Hugging Face Hub
|
2 |
+
|
3 |
on:
|
4 |
push:
|
5 |
+
branches: [main, dev]
|
6 |
|
7 |
+
# To run this workflow manually from the Actions tab
|
8 |
workflow_dispatch:
|
9 |
|
10 |
jobs:
|
|
|
15 |
with:
|
16 |
fetch-depth: 0
|
17 |
lfs: true
|
18 |
+
|
19 |
+
- name: Push main branch to Hugging Face
|
20 |
+
if: github.ref == 'refs/heads/main'
|
21 |
env:
|
22 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
23 |
run: git push https://billmarino:[email protected]/spaces/camlsys/compliancecards main
|
24 |
+
|
25 |
+
- name: Push dev branch to Hugging Face
|
26 |
+
if: github.ref == 'refs/heads/dev'
|
27 |
+
env:
|
28 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
29 |
+
run: git push https://billmarino:[email protected]/spaces/camlsys/compliancecards dev
|