feat(release): Automate changelog, asset updates, and tagging#4407
Merged
Conversation
This commit overhauls the release automation with the following improvements:
- **Automated Asset & Translation Updates**: For internal builds, the workflow now automatically updates firmware/hardware data and syncs translations with Crowdin before building.
- **Automatic Changelog Generation**: The workflow generates a changelog from commits since the last production tag. This changelog is then used for the Play Store listing and included in a new commit.
- **Decoupled Tagging**: The process of tagging a commit is now separated from building it. Builds are performed on a specific `commit_sha`, and the git tag is only applied at the end of the workflow upon success. This prevents having a tag on a failed release.
- **Release Commit**: A new commit is automatically created for internal releases to bundle the changelog, updated assets, and bumped version information.
- **Workflow Refinements**:
- The `release.yml`, `promote.yml`, and `create-or-promote-release.yml` workflows were updated to support the new `commit_sha` based logic.
- The `docs.yml` workflow is now triggered on pushes to `main` to keep documentation current.
- The `Fastfile` is updated to handle the new `changelog` parameter.
- Added a new `run-lint` job to the `release` workflow. - The `release-google` and `release-fdroid` jobs now depend on the lint check passing. - Updated the `reusable-lint` workflow to accept a `ref` input, allowing it to check out a specific commit, branch, or tag.
The `create-or-promote-release` workflow will now update the `core/proto` git submodule to fetch the latest protocol buffer definitions when creating a new `internal` channel release.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4407 +/- ##
=====================================
Coverage 8.36% 8.36%
=====================================
Files 418 418
Lines 14318 14318
Branches 2078 2078
=====================================
Hits 1197 1197
Misses 12890 12890
Partials 231 231 ☔ View full report in Codecov by Sentry. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and refactors to the release and documentation automation workflows. The main focus is on making releases more robust, automating changelog generation and asset updates, and improving workflow flexibility by allowing specific commit SHAs to be tagged and built. Additionally, the documentation workflow is now triggered on pushes to
maininstead of a weekly schedule, and linting is enforced before builds.Release workflow enhancements:
.github/workflows/release.yml,.github/workflows/promote.yml, and.github/workflows/create-or-promote-release.yml. [1] [2] [3] [4] [5]Documentation workflow improvements:
main, and added support for manual and workflow calls with a specific ref.refinput.Changelog configuration cleanup:
.github/release.ymlto simplify changelog grouping.