CCNotify icon indicating copy to clipboard operation
CCNotify copied to clipboard

Setup proper publishing workflow with automated releases

Open Helmi opened this issue 1 year ago • 0 comments

Description

Establish a comprehensive release workflow that automates PyPI publishing when GitHub releases are created, while maintaining manual control over test releases to TestPyPI.

Context

Project area: CI/CD, Release Management Complexity: 6/10 (moderate-high) Current state: We have working TestPyPI publishing that triggers automatically on main branch changes

Technical Details

Affected files:

  • .github/workflows/publish-pypi.yml - Modify to trigger on GitHub releases
  • .github/workflows/test-publish.yml - Change to manual-only workflow
  • README.md - Remove hardcoded version number
  • CHANGELOG.md - Update with recent versions (0.1.6 through 0.1.12)
  • Consider adding release automation scripts

Requirements

  1. TestPyPI Publishing

    • Change from automatic (on push to main) to manual trigger only
    • Keep workflow_dispatch for on-demand testing
    • Remove automatic triggers from push events
  2. PyPI Publishing

    • Automatically trigger when a GitHub release is published
    • Use the release tag as the version source
    • Include proper verification steps before publishing
  3. Documentation Updates

    • Remove version number from README.md (currently shows v0.1.12)
    • Version should only be tracked in pyproject.toml and init.py
    • Add badge or link to latest release instead
  4. Changelog Management

    • Update CHANGELOG.md with missing versions (0.1.6 through 0.1.12)
    • Document recent changes including:
      • TTS pronunciation improvements
      • Curl/wget notification handling
      • Embedded Kokoro TTS
      • Sound file naming changes
  5. Release Notes

    • Extract key changes from CHANGELOG.md for GitHub release descriptions
    • Consider automation for generating release notes from commits

Implementation Steps

  • [ ] Modify .github/workflows/test-publish.yml to remove automatic triggers
  • [ ] Update .github/workflows/publish-pypi.yml to trigger on release events
  • [ ] Remove version string from README.md (line 117)
  • [ ] Add release badge to README.md pointing to latest release
  • [ ] Update CHANGELOG.md with versions 0.1.6-0.1.12
  • [ ] Document release process in contributing guide or docs
  • [ ] Test workflow with a pre-release tag
  • [ ] Consider adding release notes generation script

Acceptance Criteria

  • [ ] TestPyPI publishing only runs when manually triggered
  • [ ] PyPI publishing automatically runs when a GitHub release is created
  • [ ] README.md no longer contains hardcoded version numbers
  • [ ] CHANGELOG.md is complete and up-to-date
  • [ ] Release workflow is documented for maintainers
  • [ ] First production release successfully publishes to PyPI

References

Helmi avatar Aug 10 '25 07:08 Helmi