Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLK-2659 Automated Release Workflow #911

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

EugeneLightsOn
Copy link
Collaborator

@EugeneLightsOn EugeneLightsOn commented Jan 17, 2025

Automated release workflow to automatically create a release after a PR is merged, if a new version is specified in main.py

AI Description

This PR introduces a new automated release workflow for the project. The workflow is triggered when a push is made to the main branch. It checks out the code, retrieves the latest release version, and extracts the version from the main.py file.

The workflow then compares the new version with the latest release version to determine if a new release is needed. If the new version is greater, it creates a new release with a title, release date, and a changelog of merged pull requests since the last release.

Changes

  • New workflow: Adds a new workflow named Automated Release to the project.
  • Trigger condition: The workflow is triggered when a push is made to the main branch.
  • Version comparison: Compares the new version with the latest release version to determine if a new release is required.
  • Release creation: Creates a new release with a title, release date, and a changelog of merged pull requests since the last release if the new version is greater.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.75%. Comparing base (3b1c27f) to head (3f91a57).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #911   +/-   ##
=======================================
  Coverage   76.75%   76.75%           
=======================================
  Files         272      272           
  Lines       10638    10638           
=======================================
  Hits         8165     8165           
  Misses       2473     2473           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ezawadski
Copy link
Collaborator

This looks amazing!
But do we want the release to be driven by the backend? What about changes in the interfaces? Or do they have their own release associated with them?

Copy link
Collaborator

@tianjing-li tianjing-li left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM . OK to keep as automated release, let's try testing this Friday

@EugeneLightsOn EugeneLightsOn merged commit e343a4c into main Jan 22, 2025
8 checks passed
@EugeneLightsOn EugeneLightsOn deleted the eugene/tlk-2659-automate-releases branch January 22, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants