-
Notifications
You must be signed in to change notification settings - Fork 7
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
chore/Add release script and update gha to pull the latest release vs tag #62
Conversation
jimid27
commented
Dec 5, 2024
- Resolves: https://linear.app/prefect/issue/PLA-800/actions-prefect-deploy-add-release-script-to-automatically-bump-the
- Updates GHA to not set the major version of the release (i.e v4) as the "latest" release as we use releases to determine version bumps. Also generally it seems that other GHA use the minor/patches as the latest releases
- Creates a release script similar to our other release scripts but bumps the semver version based on user input of major, minor, or patch. I'm happy to separate these into individual functions similar to our other scripts but it didn't feel overly necessary here.
@@ -0,0 +1,46 @@ | |||
#!/usr/bin/env python3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when/how does this script get run
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
locally similar to what we do for cloud releases
@@ -26,7 +26,7 @@ jobs: | |||
else | |||
echo "Tag ${MAJOR_VERSION} does not exist. Creating a new tag and release." | |||
export RELEASE_SHA=$(git rev-parse HEAD) | |||
gh release create "${MAJOR_VERSION}" --title "${MAJOR_VERSION}" --generate-notes --target "${RELEASE_SHA}" --latest | |||
gh release create "${MAJOR_VERSION}" --title "${MAJOR_VERSION}" --generate-notes --target "${RELEASE_SHA}" --latest=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting latest to false so that the latest semver release is known to be the latest