diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 80daf67..8a4fa0d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,15 +36,14 @@ jobs: python -m build python tests/build_exe.py - - name: Get package path - id: get_package_path + - name: test 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: | - 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 run: |