test publish.yml
This commit is contained in:
parent
8f8d56356f
commit
c4484f5270
10
.github/workflows/publish.yml
vendored
10
.github/workflows/publish.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user