Skip to content

Conversation

@LoserCheems
Copy link
Collaborator

Introduce a GitHub Actions workflow for on-demand package publishing to PyPI, allowing configurable git tag and Python version inputs. Implement validation to prevent publishing without required secrets.

Enables on-demand package publishing to PyPI through GitHub Actions workflow dispatch.

Accepts configurable git tag and Python version inputs, builds source distribution with CUDA build skipped, and uploads to PyPI using API token authentication.

Includes validation to prevent publishing when required secrets are missing.
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

Adds a manually triggered GitHub Actions workflow for publishing packages to PyPI with configurable inputs for git tags and Python versions. The workflow includes validation to ensure required secrets are present before attempting to publish.

  • Introduces manual_publish.yml workflow with workflow_dispatch trigger for on-demand execution
  • Implements input validation for git tag selection and Python version configuration
  • Includes secret validation to prevent publishing attempts without proper authentication

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

Comment on lines +51 to +53
if [ -z "$TWINE_PASSWORD" ]; then
echo "::error::PYPI_API_TOKEN secret not set; aborting publish."; exit 1
fi
Copy link

Copilot AI Sep 10, 2025

Choose a reason for hiding this comment

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

[nitpick] The secret validation logic should be moved to an earlier step to fail fast before performing expensive build operations. Consider adding a separate validation step before the build step.

Copilot uses AI. Check for mistakes.
@LoserCheems LoserCheems merged commit 6c3923e into main Sep 10, 2025
1 check passed
@LoserCheems LoserCheems deleted the auto-workflows branch September 20, 2025 11:32
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.

10 participants