test publish.yml

This commit is contained in:
xaoyo 2023-11-27 12:09:58 +08:00
parent 111accebc2
commit b20aa876f2

View File

@ -36,15 +36,14 @@ jobs:
python -m build python -m build
python tests/build_exe.py python tests/build_exe.py
- name: Get package path - name: test
id: get_package_path
run: | run: |
echo "::set-output name=package_path::$(python -c "import site; print(site.getsitepackages()[1])")" echo ${{ github.workspace }}
echo ${{ env.VERSION_LIST_PATH }}
- name: Package with PyInstaller - name: Build Executable
run: | run: |
pyinstaller --onefile --clean --add-data "${{ steps.get_package_path.outputs.package_path }}/pywxdump/version_list.json;pywxdump" --distpath=dist --workpath=build --specpath=build --name=pywxdump dist/tmp.py pyinstaller --onefile --clean --add-data "${{ github.workspace }}/${{ env.VERSION_LIST_PATH }};pywxdump" --distpath=dist --workpath=build --specpath=build --name=pywxdump ${{ github.workspace }}/dist/tmp.py
- name: test - name: test
run: | run: |