CCNotify
CCNotify copied to clipboard
Setup proper publishing workflow with automated releases
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 workflowREADME.md- Remove hardcoded version numberCHANGELOG.md- Update with recent versions (0.1.6 through 0.1.12)- Consider adding release automation scripts
Requirements
-
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
-
PyPI Publishing
- Automatically trigger when a GitHub release is published
- Use the release tag as the version source
- Include proper verification steps before publishing
-
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
-
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
-
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.ymlto remove automatic triggers - [ ] Update
.github/workflows/publish-pypi.ymlto 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