From 1364ac46399f182b41ac42c828ac5fa7fcc984fd Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Sat, 9 Nov 2024 20:16:58 +0100 Subject: [PATCH] ci: generate better release notes (#2103) --- release.sh | 17 ++-- release_notes.txt | 250 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 261 insertions(+), 6 deletions(-) create mode 100644 release_notes.txt diff --git a/release.sh b/release.sh index c03eee6..7299860 100755 --- a/release.sh +++ b/release.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# shellcheck disable=SC1091 set -e @@ -17,13 +18,17 @@ if [[ $( gh release view --repo "${ASSETS_REPOSITORY}" "${RELEASE_VERSION}" 2>&1 if [[ "${VSCODE_QUALITY}" == "insider" ]]; then NOTES="update vscode to [${MS_COMMIT}](https://github.com/microsoft/vscode/tree/${MS_COMMIT})" - CREATE_OPTIONS="" - else - NOTES="update vscode to [${MS_TAG}](https://code.visualstudio.com/updates/v$( echo "${MS_TAG//./_}" | cut -d'_' -f 1,2 ))" - CREATE_OPTIONS="--generate-notes" - fi - gh release create "${RELEASE_VERSION}" --repo "${ASSETS_REPOSITORY}" --title "${RELEASE_VERSION}" --notes "${NOTES}" ${CREATE_OPTIONS} + gh release create "${RELEASE_VERSION}" --repo "${ASSETS_REPOSITORY}" --title "${RELEASE_VERSION}" --notes "${NOTES}" + else + . ./utils.sh + + replace "s|MS_TAG_SHORT|$( echo "${MS_TAG//./_}" | cut -d'_' -f 1,2 )|" release_notes.txt + replace "s|MS_TAG|${MS_TAG}|" release_notes.txt + replace "s|RELEASE_VERSION|${RELEASE_VERSION}|" release_notes.txt + + gh release create "${RELEASE_VERSION}" --repo "${ASSETS_REPOSITORY}" --title "${RELEASE_VERSION}" --generate-notes --notes-start-tag RELEASE_NOTES --notes-file release_notes.txt + fi fi cd assets diff --git a/release_notes.txt b/release_notes.txt new file mode 100644 index 0000000..873757c --- /dev/null +++ b/release_notes.txt @@ -0,0 +1,250 @@ +update vscode to [MS_TAG](https://code.visualstudio.com/updates/vMS_TAG_SHORT) + +RELEASE_NOTES + +## x86 64bits + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
WindowsUser InstallerVSCodiumUserSetup-x64-RELEASE_VERSION.exe
System InstallerVSCodiumSetup-x64-RELEASE_VERSION.exe
.zipVSCodium-win32-x64-RELEASE_VERSION.zip
.msi - updates enabledVSCodium-x64-RELEASE_VERSION.msi
.msi - updates disabledVSCodium-x64-updates-disabled-RELEASE_VERSION.msi
Remote Hostvscodium-reh-win32-x64-RELEASE_VERSION.tar.gz
Web Hostvscodium-reh-web-win32-x64-RELEASE_VERSION.tar.gz
macOS.dmgVSCodium.x64.RELEASE_VERSION.dmg
.zipVSCodium-darwin-x64-RELEASE_VERSION.zip
Remote Hostvscodium-reh-darwin-x64-RELEASE_VERSION.tar.gz
Web Hostvscodium-reh-web-darwin-x64-RELEASE_VERSION.tar.gz
Linux.debcodium_RELEASE_VERSION_amd64.deb
.rpmcodium-RELEASE_VERSION-el9.x86_64.rpm
.tar.gzVSCodium-linux-x64-RELEASE_VERSION.tar.gz
AppImage + VSCodium-RELEASE_VERSION.glibc2.25-x86_64.AppImage
+ VSCodium-RELEASE_VERSION.glibc2.25-x86_64.AppImage.zsync +
Snapcodium_RELEASE_VERSION_amd64.snap
Remote Hostvscodium-reh-linux-x64-RELEASE_VERSION.tar.gz
Web Hostvscodium-reh-web-linux-x64-RELEASE_VERSION.tar.gz
AlpineRemote Hostvscodium-reh-alpine-x64-RELEASE_VERSION.tar.gz
Web Hostvscodium-reh-web-alpine-x64-RELEASE_VERSION.tar.gz
+ +## ARM 64bits + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
WindowsUser InstallerVSCodiumUserSetup-arm64-RELEASE_VERSION.exe
System InstallerVSCodiumSetup-arm64-RELEASE_VERSION.exe
.zipVSCodium-win32-arm64-RELEASE_VERSION.zip
macOS.dmgVSCodium.arm64.RELEASE_VERSION.dmg
.zipVSCodium-darwin-arm64-RELEASE_VERSION.zip
Remote Hostvscodium-reh-darwin-arm64-RELEASE_VERSION.tar.gz
Web Hostvscodium-reh-web-darwin-arm64-RELEASE_VERSION.tar.gz
Linux.debcodium_RELEASE_VERSION_arm64.deb
.rpmcodium-RELEASE_VERSION-el9.aarch64.rpm
.tar.gzVSCodium-linux-arm64-RELEASE_VERSION.tar.gz
Snapcodium_RELEASE_VERSION_arm64.snap
Remote Hostvscodium-reh-linux-arm64-RELEASE_VERSION.tar.gz
Web Hostvscodium-reh-web-linux-arm64-RELEASE_VERSION.tar.gz
AlpineRemote Hostvscodium-reh-alpine-arm64-RELEASE_VERSION.tar.gz
Web Hostvscodium-reh-web-alpine-arm64-RELEASE_VERSION.tar.gz
+ +## ARM 32bits + + + + + + + + + + + + + + + + + + + + + + + +
Linux.debcodium_RELEASE_VERSION_armhf.deb
.rpmcodium-RELEASE_VERSION-el9.armv7hl.rpm
.tar.gzVSCodium-linux-armhf-RELEASE_VERSION.tar.gz
Remote Hostvscodium-reh-linux-armhf-RELEASE_VERSION.tar.gz
Web Hostvscodium-reh-web-linux-armhf-RELEASE_VERSION.tar.gz
+ +## PPC 64bits + + + + + + + + + + + +
LinuxRemote Hostvscodium-reh-linux-ppc64le-RELEASE_VERSION.tar.gz
Web Hostvscodium-reh-web-linux-ppc64le-RELEASE_VERSION.tar.gz
+ +## RISC-V 64bits + + + + + + + + + + + + + + + +
Linux.tar.gzVSCodium-linux-riscv64-RELEASE_VERSION.tar.gz
Remote Hostvscodium-reh-linux-riscv64-RELEASE_VERSION.tar.gz
Web Hostvscodium-reh-web-linux-riscv64-RELEASE_VERSION.tar.gz
+ +## Loong 64bits + + + + + + + + + + + +
LinuxRemote Hostvscodium-reh-linux-loong64-RELEASE_VERSION.tar.gz
Web Hostvscodium-reh-web-linux-loong64-RELEASE_VERSION.tar.gz
+ +## s390x + + + + + + + + + + + +
LinuxRemote Hostvscodium-reh-linux-s390x-RELEASE_VERSION.tar.gz
Web Hostvscodium-reh-web-linux-s390x-RELEASE_VERSION.tar.gz