Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ jobs:
github_token: ${{ secrets.ADMIN_TOKEN }} # Use the new token for authentication
git_committer_name: "OpenAdapt Bot"
git_committer_email: "bot@openadapt.ai"
build_command: "pip install poetry && poetry env use $PYTHON_PATH/python3.10 && poetry build"
- name: Upload release assets
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
13 changes: 12 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,15 @@ upload_to_PyPI = false
upload_to_release = true
upload_to_repository = false
repository_url = "https://upload.pypi.org/legacy/"
build_command = "pip install poetry && poetry env use python3.10 && poetry build"
build_command = """
pip install poetry && \
echo "PYTHON_PATH is set to: $PYTHON_PATH" && \
if [ -z \"$PYTHON_PATH\" ]; then \
echo "PYTHON_PATH is empty, using default python3.10" && \
poetry env use python3.10; \
else \
echo "Using python from PYTHON_PATH: $PYTHON_PATH/python3.10" && \
poetry env use $PYTHON_PATH/python3.10; \
fi && \
poetry build
"""