test publish.yml
This commit is contained in:
parent
7c74ed6b4a
commit
8f8d56356f
22
.github/workflows/publish.yml
vendored
22
.github/workflows/publish.yml
vendored
@ -35,27 +35,23 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m build
|
python -m build
|
||||||
python tests/build_exe.py
|
python tests/build_exe.py
|
||||||
|
|
||||||
- name: Get package path
|
- name: Get package path
|
||||||
run: |
|
run: |
|
||||||
package_path=$(python -c "import site; print(site.getsitepackages()[1])")
|
$package_path = $(python -c "import site; print(site.getsitepackages()[1])")
|
||||||
version_list_path="$package_path/pywxdump/version_list.json"
|
$version_list_path = "$package_path/pywxdump/version_list.json"
|
||||||
|
|
||||||
# Execute packaging command
|
# Execute packaging command
|
||||||
cmd="pyinstaller --onefile --clean --add-data \"$version_list_path;pywxdump\" --distpath=dist --workpath=build --specpath=build --name=pywxdump dist/tmp.py"
|
$cmd = "pyinstaller --onefile --clean --add-data `"$version_list_path;pywxdump`" --distpath=dist --workpath=build --specpath=build --name=pywxdump dist/tmp.py"
|
||||||
echo $cmd
|
Write-Host $cmd
|
||||||
eval $cmd || exit 1
|
Invoke-Expression $cmd || exit 1
|
||||||
|
|
||||||
- name: Check package path
|
- name: Check package path
|
||||||
run: |
|
run: |
|
||||||
if [ -z "$package_path" ]; then
|
if (-not $package_path) {
|
||||||
echo "未找到安装包路径"
|
Write-Error "未找到安装包路径"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
}
|
||||||
|
|
||||||
- name: test
|
|
||||||
run: |
|
|
||||||
ls -l dist
|
|
||||||
ls -l tests
|
|
||||||
|
|
||||||
# - name: Publish package with Twine # 使用 Twine 发布到 PyPI
|
# - name: Publish package with Twine # 使用 Twine 发布到 PyPI
|
||||||
# run: |
|
# run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user