From c4484f5270e8b9ba93818c233b9780298bea8b15 Mon Sep 17 00:00:00 2001 From: xaoyo Date: Mon, 27 Nov 2023 11:54:02 +0800 Subject: [PATCH] test publish.yml --- .github/workflows/publish.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 11fef8c..f89daf1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,13 +38,14 @@ jobs: - name: Get package path run: | - $package_path = $(python -c "import site; print(site.getsitepackages()[1])") + $pythonCmd = "python -c ""import site; print(site.getsitepackages()[1])""" + $package_path = Invoke-Expression -Command $pythonCmd $version_list_path = "$package_path/pywxdump/version_list.json" # Execute packaging command $cmd = "pyinstaller --onefile --clean --add-data `"$version_list_path;pywxdump`" --distpath=dist --workpath=build --specpath=build --name=pywxdump dist/tmp.py" Write-Host $cmd - Invoke-Expression $cmd || exit 1 + Invoke-Expression -Command $cmd || exit 1 - name: Check package path run: | @@ -53,6 +54,11 @@ jobs: exit 1 } + - name: test + run: | + ls -l dist + ls -l tests + # - name: Publish package with Twine # 使用 Twine 发布到 PyPI # run: | # twine upload dist/*.whl dist/*.tar.gz