Skip to content

Conversation

@bishoy-at-pieces
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings October 16, 2025 22:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes CI pipeline issues by relocating the PyPI package upload step. The main changes reorganize when packages are uploaded to PyPI during the build and release workflow.

  • Moved PyPI upload step from the release job to the build job
  • Removed directory setup and file copying logic that is no longer needed in the new location

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

- name: Upload Packages to PyPi for release
if: inputs.deploy == true
run: |-
export POETRY_PYPI_TOKEN_PYPI=${{ secrets.pypi_token }}
Copy link

Copilot AI Oct 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The secret reference uses lowercase 'pypi_token' but GitHub Actions secrets are typically uppercase. This should likely be secrets.PYPI_TOKEN to match standard naming conventions, otherwise the authentication will fail if the secret is defined with uppercase naming.

Suggested change
export POETRY_PYPI_TOKEN_PYPI=${{ secrets.pypi_token }}
export POETRY_PYPI_TOKEN_PYPI=${{ secrets.PYPI_TOKEN }}

Copilot uses AI. Check for mistakes.
Comment on lines +317 to +320
run: |-
export POETRY_PYPI_TOKEN_PYPI=${{ secrets.pypi_token }}
pip install poetry
poetry publish
Copy link

Copilot AI Oct 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The poetry publish command will fail because the dist directory with built packages may not exist at this point in the workflow. The removed code at line 457-458 explicitly created the dist directory and copied packages into it, but this logic has been removed without ensuring packages are available in the expected location.

Copilot uses AI. Check for mistakes.
@bishoy-at-pieces bishoy-at-pieces merged commit b541301 into main Oct 16, 2025
7 checks passed
@bishoy-at-pieces bishoy-at-pieces deleted the fix-ci branch October 16, 2025 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants