hass-momentary
hass-momentary copied to clipboard
Add Release and Label GitHub Action
On a Release:
- Automatically update the version in const.py and manifest.json to the Semver tag of the release
- Zip the release so you can see number of downloads in HACS
- Auto label some PRs and use the labels to group auto generated release notes
This pull request introduces automated labeling and release management workflows to the repository, along with configuration updates to support zip-based releases. The main changes include adding GitHub Actions for labeling and release automation, defining label rules, configuring changelog categories, and updating release packaging metadata.
GitHub Actions Workflows:
- Added
.github/workflows/labeler.ymlto automatically apply labels to pull requests based on author and title patterns. - Added
.github/workflows/release.ymlto automate version updates, zip packaging, and release asset uploads when a release is published or manually triggered.
Labeling and Changelog Configuration:
- Introduced
.github/labeler.ymlto define label rules for pull requests, including categories for dependencies, bugfixes, features, breaking changes, enhancements, documentation, code quality, and GitHub Actions. - Added
.github/release.ymlto configure changelog generation, excluding certain labels and grouping changes into categories for release notes.
Release Packaging Metadata:
- Updated
hacs.jsonto indicate that releases should include a zip file (momentary.zip) for distribution.