Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/medcat-v2_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
VERSION_TAG="${GITHUB_REF#refs/tags/}"
# NOTE: branch name is in line with version tag, except for the patch version
BRANCH_NAME="${VERSION_TAG%.*}" # This removes the patch version (everything after the second dot)
BRANCH_NAME="${BRANCH_NAME//-//}" # this replaces the - in the version tag with the / in the release branch

# Check out the corresponding release branch (e.g., medcat-v0.1)
git checkout $BRANCH_NAME
Expand Down
2 changes: 1 addition & 1 deletion medcat-v2/.release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The scripts within here are designed to help preparing for and dealing with rele

The main idea is to use the `prepare_release.sh` script from within the root of the project and it will delegate either to `prepare_minor_release.sh` or `prepare_patch_release.sh` as necessary.
The workflow within the scripts is as follows:
- Create or check out release branch (`release/v<major>.<minor>`)
- Create or check out release branch (`medcat/v<major>.<minor>`)
- Update version in `pyproject.toml`
- Create a tag based on the version
- Push both the branch as well as the tag to `origin`
Expand Down
2 changes: 1 addition & 1 deletion medcat-v2/.release/prepare_minor_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: version '$VERSION' must be in format X.Y.Z"
exit 1
fi
VERSION_TAG="medcat/v$VERSION"
VERSION_TAG="medcat-v$VERSION"

# Extract version components
VERSION_MAJOR_MINOR="${VERSION%.*}"
Expand Down
2 changes: 1 addition & 1 deletion medcat-v2/.release/prepare_patch_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: version '$VERSION' must be in format X.Y.Z"
exit 1
fi
VERSION_TAG="medcat/v$VERSION"
VERSION_TAG="medcat-v$VERSION"

# Extract version components
VERSION_MAJOR_MINOR="${VERSION%.*}"
Expand Down