Skip to content

Commit 8212d78

Browse files
committed
Update check-release script with the new way to update version
1 parent d166f19 commit 8212d78

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/scripts/check-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Checking if current tag matches the package version
44
current_tag=$(echo $GITHUB_REF | tr -d 'refs/tags/v')
5-
file_tag=$(grep 'version=' setup.py | cut -d '=' -f 2- | tr -d ' ' | tr -d '"' | tr -d ',')
5+
file_tag=$(grep 'VERSION =' meilisearch/version.py | cut -d '=' -f 2- | tr -d ' ' | tr -d '"' | tr -d ',')
66
if [ "$current_tag" != "$file_tag" ]; then
77
echo "Error: the current tag does not match the version in package file(s)."
88
echo "$current_tag vs $file_tag"

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ _[Read more about this](https://github.com/meilisearch/integration-guides/blob/m
114114

115115
⚠️ Before doing anything, make sure you got through the guide about [Releasing an Integration](https://github.com/meilisearch/integration-guides/blob/main/resources/integration-release.md).
116116

117-
Make a PR modifying the file [`setup.py`](/setup.py) with the right version.
117+
Make a PR modifying the file [`meilisearch/version.py`](/meilisearch/version.py) with the right version.
118118

119119
```python
120-
version="X.X.X"
120+
__version__ = "X.X.X"
121121
```
122122

123123
Once the changes are merged on `main`, you can publish the current draft release via the [GitHub interface](https://github.com/meilisearch/meilisearch-python/releases): on this page, click on `Edit` (related to the draft release) > update the description (be sure you apply [these recommandations](https://github.com/meilisearch/integration-guides/blob/main/resources/integration-release.md#writting-the-release-description)) > when you are ready, click on `Publish release`.

0 commit comments

Comments
 (0)