Created
October 22, 2019 15:10
-
-
Save slide/a4dc20c4ca8250e3347fc0175d04c8a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New-Item -ItemType Directory -Path $('{0}/{1}' -f $env:WARDIR,$env:VERSION) | |
New-Item -ItemType Directory -Path $env:WAR_WEBDIR | |
$sha256 = (Get-FileHash -Algorithm SHA256 -Path $_.FullName).Hash.ToString().ToLower() | |
Set-Content -Path $env:WAR_SHASUM -Value $sha256 | |
Write-Host $sha256 | |
Copy-Item $env:WAR $('{0}/{1}/{2}.war' -f $env:WARDIR,$env:VERSION,$ARTIFACTNAME) | |
Copy-Item $env:WAR_SHASUM $('{0}/{1}' -f $env:WARDIR,$env:VERSION) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment