diff options
Diffstat (limited to 'scripts/release.sh')
-rwxr-xr-x | scripts/release.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/release.sh b/scripts/release.sh index ccb93bc44..08061fe6f 100755 --- a/scripts/release.sh +++ b/scripts/release.sh | |||
@@ -43,7 +43,7 @@ directory_name="peertube-$version" | |||
43 | zip_name="peertube-$version.zip" | 43 | zip_name="peertube-$version.zip" |
44 | tar_name="peertube-$version.tar.xz" | 44 | tar_name="peertube-$version.tar.xz" |
45 | 45 | ||
46 | changelog=$(awk -v version="$version" '/## v/ { printit = $2 == version }; printit;' CHANGELOG.md | grep -v "$version" | sed '1{/^$/d}') | 46 | changelog=$(awk -v version="$version" '/## v/ { printit = $2 == version }; printit;' CHANGELOG.md | grep -v "## $version" | sed '1{/^$/d}') |
47 | 47 | ||
48 | printf "Changelog will be:\\n\\n%s\\n\\n" "$changelog" | 48 | printf "Changelog will be:\\n\\n%s\\n\\n" "$changelog" |
49 | 49 | ||
@@ -60,7 +60,9 @@ fi | |||
60 | 60 | ||
61 | npm version -f --no-git-tag-version --no-commit-hooks "$1" | 61 | npm version -f --no-git-tag-version --no-commit-hooks "$1" |
62 | 62 | ||
63 | git commit package.json client/package.json -m "Bumped to version $version" | 63 | ./scripts/openapi-peertube-version.sh |
64 | |||
65 | git commit package.json client/package.json ./support/doc/api/openapi.yaml -m "Bumped to version $version" | ||
64 | git tag -s -a "$version" -m "$version" | 66 | git tag -s -a "$version" -m "$version" |
65 | 67 | ||
66 | npm run build | 68 | npm run build |