-
Notifications
You must be signed in to change notification settings - Fork 41
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
scripts: add release script #164
Merged
Merged
Conversation
This file contains 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
Add a _definitely not over engineered_ release script to easily and safely create and push git tags.
joshuasing
added
type: enhancement
This improves existing functionality
size: M
This change is medium (+/- <200)
labels
Jul 1, 2024
} | ||
|
||
# https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string | ||
SEMVER_REGEX='^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$' |
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.
🤣
marcopeereboom
approved these changes
Jul 2, 2024
jcvernaleo
requested changes
Jul 2, 2024
ClaytonNorthey92
approved these changes
Jul 2, 2024
jcvernaleo
approved these changes
Jul 2, 2024
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.
OK
web3cryptoguy
pushed a commit
to web3cryptoguy/heminetwork
that referenced
this pull request
Nov 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
Summary
Add a definitely not over engineered release script to easily and safely create and push git tags.
Tags the latest remote commit in the heminetwork repository's main branch and pushes the tag to the repository, triggering the release CI which will build all necessary binaries, Docker images, etc. and create a GitHub release.
This script will create a new remote called
upstream
(configurable withREMOTE_NAME
). This remote is used to fetch the latest commit on the main branch, allowing a tag to be created on the latest remote commit while ignoring any local changes.The provided version (and all version bumps) must follow the Semantic Versioning 2.0.0 specification (..), as per https://semver.org/. This allows the versioning to stay consistent while easily communicating the type of change the version contains to users.
This script will always confirm with you before creating or pushing the tag, in an attempt to prevent accidental tag creation or pushes.
Usage:
Requirements:
Changes
scripts/release.sh