Skip to content

Commit c8b2269

Browse files
committed
publish workflow update
1 parent 9a159aa commit c8b2269

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ jobs:
1818
run: pip install flit
1919
- name: Install Dependencies
2020
run: flit install --symlink
21+
- name: Install build dependencies
22+
run: pip install build
23+
- name: Build distribution
24+
run: python -m build
2125
- name: Publish
22-
env:
23-
FLIT_USERNAME: ${{ secrets.FLIT_USERNAME }}
24-
FLIT_PASSWORD: ${{ secrets.FLIT_PASSWORD }}
25-
run: flit publish
26+
uses: pypa/gh-action-pypi-publish@v1.8.10
27+
with:
28+
password: ${{ secrets.FLIT_PASSWORD }}

ellar_cli/click/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from functools import update_wrapper
44

55
import click
6-
from ellar.threading import run_with_sync_worker
6+
from ellar.threading import execute_coroutine_with_sync_worker
77

88
from ellar_cli.constants import ELLAR_META, ELLAR_PROJECT_NAME
99
from ellar_cli.service import EllarCLIService
@@ -22,7 +22,7 @@ def _async_run(future: t.Coroutine) -> t.Any:
2222
loop.stop()
2323
loop.close()
2424
else:
25-
res = run_with_sync_worker(future)
25+
res = execute_coroutine_with_sync_worker(future)
2626

2727
return res
2828

0 commit comments

Comments
 (0)