This is an automated email from the ASF dual-hosted git repository.
zhaoqingran pushed a commit to branch release-1.6.1-rc1
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/release-1.6.1-rc1 by this push:
new e5fafdbc0 chore(release): bump version to 1.6.1Update version numbers
in constants, pom.xml, and release script to reflect the new version 1.6.1.
Ensure that all necessary files are updated consistently to maintain version
integrity across the project.
e5fafdbc0 is described below
commit e5fafdbc0165245558be6e795820d16e27b2ba36
Author: Logic <[email protected]>
AuthorDate: Wed Sep 18 23:59:50 2024 +0800
chore(release): bump version to 1.6.1Update version numbers in constants,
pom.xml, and release script to reflect the new
version 1.6.1. Ensure that all necessary files are updated consistently to
maintain
version integrity across the project.
---
pom.xml | 2 +-
script/release/release-win.ps1 | 72 +++++++++++++++++++++++++++++++++++++
web-app/src/app/shared/constants.ts | 2 +-
3 files changed, 74 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index d2a11c16e..0c8039e2f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -91,7 +91,7 @@
</modules>
<properties>
- <hzb.version>1.6.0</hzb.version>
+ <hzb.version>1.6.1</hzb.version>
<java.version>17</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
diff --git a/script/release/release-win.ps1 b/script/release/release-win.ps1
new file mode 100644
index 000000000..89aef7f50
--- /dev/null
+++ b/script/release/release-win.ps1
@@ -0,0 +1,72 @@
+$gpgKeyId = "********"
+
+$version = "1.6.1"
+$rcNumber = "rc1"
+
+$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path
+$projectPath = (Get-Item (Split-Path -Parent $scriptPath)).Parent.FullName
+
+$distPath = "$projectPath\dist"
+
+# Clean up the 'dist' directory
+Write-Host "Cleaning up the 'dist' directory..."
+Remove-Item -Recurse -Force $distPath\* -ErrorAction SilentlyContinue
+New-Item -ItemType Directory -Path $distPath -Force
+
+# Clean up the 'web-app/dist' directory
+Write-Host "Cleaning up the 'web-app/dist' directory..."
+$webAppDistPath = "$projectPath\web-app\dist"
+Remove-Item -Recurse -Force $webAppDistPath\* -ErrorAction SilentlyContinue
+New-Item -ItemType Directory -Path $webAppDistPath -Force
+Push-Location -Path $projectPath
+
+Write-Host "Installing dependencies and packaging web-app..."
+Push-Location -Path "web-app"
+yarn install
+yarn package
+Pop-Location
+
+Write-Host "Building project with Maven..."
+mvn clean package -Prelease
+
+mvn clean install
+
+Write-Host "Building collector..."
+Push-Location -Path "collector"
+mvn clean package -Pcluster
+Pop-Location
+
+# package release artifacts
+Write-Host "Archiving source code..."
+git archive --format=tar.gz
--output="dist/apache-hertzbeat-$version-incubating-src.tar.gz"
--prefix=apache-hertzbeat-$version-incubating-src/$rcNumber git archive
--format=tar.gz --output="dist/apache-hertzbeat-$version-incubating-src.tar.gz"
--prefix=apache-hertzbeat-$version-incubating-src/$rcNumber
+
+# sign release artifacts
+Write-Host "Signing release artifacts..."
+Push-Location -Path "dist"
+Get-ChildItem *.tar.gz | ForEach-Object {
+ $fileName = $_.Name
+ Write-Host "Signing $fileName..."
+ gpg -u $gpgKeyId --armor --output "$fileName.asc" --detach-sig "$fileName"
+ Write-Host "Generating SHA512 for $fileName..."
+ $hash = Get-FileHash -Path "$fileName" -Algorithm SHA512
+ $hashString = $hash.Hash
+ "$hashString $fileName" | Out-File "$fileName.sha512" -Append
+}
+Pop-Location
+
+# verify signatures
+Write-Host "Verifying signatures..."
+Push-Location -Path "dist"
+Get-ChildItem *.tar.gz | ForEach-Object {
+ $fileName = $_.Name
+ Write-Host "Verifying $fileName..."
+ gpg --verify "$fileName.asc" "$fileName"
+ Write-Host "Checking SHA512 for $fileName..."
+ $hash = Get-FileHash -Path "$fileName" -Algorithm SHA512
+ if ($hash.Hash -eq $null) {
+ Write-Host "Hash mismatch for $fileName"
+ } else {
+ Write-Host "Hash verified for $fileName"
+ }
+}
+Pop-Location
\ No newline at end of file
diff --git a/web-app/src/app/shared/constants.ts
b/web-app/src/app/shared/constants.ts
index 74fef9fe9..2d4f03df7 100644
--- a/web-app/src/app/shared/constants.ts
+++ b/web-app/src/app/shared/constants.ts
@@ -18,5 +18,5 @@
*/
export const CONSTANTS = {
- VERSION: 'v1.6.0'
+ VERSION: 'v1.6.1'
};
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]