Skip to content

Commit

Permalink
[improve] fix release script (apache#2781)
Browse files Browse the repository at this point in the history
  • Loading branch information
zqr10159 authored Oct 23, 2024
1 parent 1f22a61 commit 32f8cd5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions script/release/release-win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@

$gpgKeyId = "********"

# ********************************************************
# Set version and release candidate number
$version = "1.6.1"
$rcNumber = "rc1"
# ********************************************************

$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path
$projectPath = (Get-Item (Split-Path -Parent $scriptPath)).Parent.FullName
Expand All @@ -42,13 +45,13 @@ yarn package
Pop-Location

Write-Host "Building project with Maven..."
mvn clean package -Prelease
mvn clean package -Prelease -DskipTests

mvn clean install
mvn clean install -DskipTests

Write-Host "Building collector..."
Push-Location -Path "collector"
mvn clean package -Pcluster
mvn clean package -Pcluster -DskipTests
Pop-Location

# package release artifacts
Expand All @@ -65,7 +68,7 @@ Get-ChildItem *.tar.gz | ForEach-Object {
Write-Host "Generating SHA512 for $fileName..."
$hash = Get-FileHash -Path "$fileName" -Algorithm SHA512
$hashString = $hash.Hash
"$hashString $fileName" | Out-File "$fileName.sha512" -Append
"$hashString $fileName" | Out-File "$fileName.sha512" -Append -NoNewline
}
Pop-Location

Expand Down

0 comments on commit 32f8cd5

Please sign in to comment.