Skip to content

Add publish.yml#75

Closed
glenn-jocher wants to merge 16 commits into
mainfrom
add-publish
Closed

Add publish.yml#75
glenn-jocher wants to merge 16 commits into
mainfrom
add-publish

Conversation

@glenn-jocher

@glenn-jocher glenn-jocher commented Nov 11, 2025

Copy link
Copy Markdown
Member

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Adds automated PyPI publishing and Slack notification workflows for ultralytics/template, with a version bump to 0.0.1 🚀

📊 Key Changes

  • Added a new Publish to PyPI GitHub Actions workflow 📦
    • Checks whether the local package version is newer than the PyPI version.
    • Automatically creates a Git tag and GitHub release when publishing.
    • Builds the package and publishes it to PyPI using trusted publishing.
    • Generates and uploads an SBOM file for release transparency.
  • Added a Test Notify workflow 🧪
    • Simulates successful or failed publish results.
    • Validates Slack notification formatting before using it in real releases.
  • Added Slack notifications for publish results 🔔
    • Sends success or failure messages with repository, commit, workflow, and package details.
  • Bumped package version from 0.0.0 to 0.0.1

🎯 Purpose & Impact

  • Enables a more reliable and automated release process with less manual work ⚙️
  • Improves package delivery by publishing new versions to PyPI only when needed 📤
  • Increases release visibility through Slack alerts for success and failure cases 👀
  • Adds SBOM generation to improve supply-chain transparency and security compliance 🛡️
  • Prepares the template repository for its first publishable package release 🎉

@codecov

codecov Bot commented Nov 11, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@UltralyticsAssistant UltralyticsAssistant added devops GitHub Devops or MLops enhancement New feature or request labels Nov 11, 2025
@UltralyticsAssistant

Copy link
Copy Markdown
Member

👋 Hello @glenn-jocher, thank you for submitting a ultralytics/template 🚀 PR! This is an automated review to help speed things up—an engineer will assist shortly. To ensure a seamless integration of your work, please review the following checklist:

  • Define a Purpose: Clearly explain the purpose of your fix or feature in your PR description, and link to any relevant issues. Ensure your commit messages are clear, concise, and adhere to the project's conventions.
  • Synchronize with Source: Confirm your PR is synchronized with the ultralytics/template main branch. If it's behind, update it by clicking the 'Update branch' button or by running git pull and git merge main locally.
  • Ensure CI Checks Pass: Verify all Ultralytics Continuous Integration (CI) checks are passing. If any checks fail, please address the issues.
  • Update Documentation: Update the relevant documentation for any new or modified features.
  • Add Tests: If applicable, include or update tests to cover your changes, and confirm that all tests are passing.
  • Sign the CLA: Please ensure you have signed our Contributor License Agreement if this is your first Ultralytics PR by writing "I have read the CLA Document and I sign the CLA" in a new message.
  • Minimize Changes: Limit your changes to the minimum necessary for your bug fix or feature addition. "It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is." — Bruce Lee

For more guidance, please refer to our Contributing Guide. Don't hesitate to leave a comment if you have any questions. Thank you for contributing to Ultralytics! 🚀

@UltralyticsAssistant UltralyticsAssistant left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🔍 PR Review

Made with ❤️ by Ultralytics Actions

Please harden the Slack notification step to handle direct pushes (no PR) gracefully, and hook up or remove the unused pypi workflow_dispatch input.

💬 Posted 2 inline comments

Comment thread .github/workflows/publish.yml Outdated
Comment thread .github/workflows/publish.yml
@glenn-jocher glenn-jocher deleted the add-publish branch July 4, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops GitHub Devops or MLops enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants