SWivid commited on
Commit
7f3b802
·
1 Parent(s): 73d8cda

switch sync-hf workflow logic on release, avoid hidden space error with pypi/local_editable mismatch

Browse files
Files changed (1) hide show
  1. .github/workflows/sync-hf.yaml +2 -4
.github/workflows/sync-hf.yaml CHANGED
@@ -1,10 +1,8 @@
1
  name: Sync to HF Space
2
 
3
  on:
4
- push:
5
- branches:
6
- - main
7
-
8
 
9
  jobs:
10
  trigger_curl:
 
1
  name: Sync to HF Space
2
 
3
  on:
4
+ release:
5
+ types: [published]
 
 
6
 
7
  jobs:
8
  trigger_curl: