mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-01-20 09:23:56 +00:00
add version and timestamp to zip artifact
This commit is contained in:
@@ -2,7 +2,10 @@ $PSVersionTable.PSVersion
|
||||
|
||||
## Create the zip before the tests run
|
||||
## Otherwise the EPPlus.dll is in use after the Pester run
|
||||
Compress-Archive -Path . -DestinationPath .\ImportExcel.zip
|
||||
$ModuleVersion = (Get-Content -Raw .\ImportExcel.psd1) | Invoke-Expression | ForEach-Object ModuleVersion
|
||||
|
||||
$dest = "ImportExcel-{0}-{1}.zip" -f $ModuleVersion, (Get-Date).ToString("yyyyMMddHHmmss")
|
||||
Compress-Archive -Path . -DestinationPath .\$dest
|
||||
|
||||
if ((Get-Module -ListAvailable pester) -eq $null) {
|
||||
Install-Module -Name Pester -Repository PSGallery -Force
|
||||
|
||||
Reference in New Issue
Block a user