File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,6 @@ jobs:
205205 github_token : ${{ secrets.ADMIN_TOKEN }} # Use the new token for authentication
206206 git_committer_name : " OpenAdapt Bot"
207207 git_committer_email :
" [email protected] " 208- build_command : " pip install poetry && poetry env use $PYTHON_PATH/python3.10 && poetry build"
209208 - name : Upload release assets
210209 env :
211210 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -156,4 +156,15 @@ upload_to_PyPI = false
156156upload_to_release = true
157157upload_to_repository = false
158158repository_url = " https://upload.pypi.org/legacy/"
159- build_command = " pip install poetry && poetry env use python3.10 && poetry build"
159+ build_command = """
160+ pip install poetry && \
161+ echo "PYTHON_PATH is set to: $PYTHON_PATH" && \
162+ if [ -z \" $PYTHON_PATH\" ]; then \
163+ echo "PYTHON_PATH is empty, using default python3.10" && \
164+ poetry env use python3.10; \
165+ else \
166+ echo "Using python from PYTHON_PATH: $PYTHON_PATH/python3.10" && \
167+ poetry env use $PYTHON_PATH/python3.10; \
168+ fi && \
169+ poetry build
170+ """
You can’t perform that action at this time.
0 commit comments