hass-momentary icon indicating copy to clipboard operation
hass-momentary copied to clipboard

Add Release and Label GitHub Action

Open Snuffy2 opened this issue 3 months ago • 0 comments

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.yml to automatically apply labels to pull requests based on author and title patterns.
  • Added .github/workflows/release.yml to automate version updates, zip packaging, and release asset uploads when a release is published or manually triggered.

Labeling and Changelog Configuration:

  • Introduced .github/labeler.yml to define label rules for pull requests, including categories for dependencies, bugfixes, features, breaking changes, enhancements, documentation, code quality, and GitHub Actions.
  • Added .github/release.yml to configure changelog generation, excluding certain labels and grouping changes into categories for release notes.

Release Packaging Metadata:

  • Updated hacs.json to indicate that releases should include a zip file (momentary.zip) for distribution.

Snuffy2 avatar Oct 08 '25 02:10 Snuffy2