Skip to content

Commit

Permalink
Extract files to publish from release script
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd committed Jul 10, 2024
1 parent 99760df commit 2a75fdf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
17 changes: 17 additions & 0 deletions publish/filesToPublish.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@(
'Pester.ps1'
'Pester.psd1'
'Pester.psm1'
'Pester.Format.ps1xml'
'PesterConfiguration.Format.ps1xml'
'bin/net462/Pester.dll'
'bin/net6.0/Pester.dll'
'en-US/about_Pester.help.txt'
'en-US/about_PesterConfiguration.help.txt'
'schemas/JaCoCo/report.dtd'
'schemas/JUnit4/junit_schema_4.xsd'
'schemas/NUnit25/nunit_schema_2.5.xsd'
'schemas/NUnit3/TestDefinitions.xsd'
'schemas/NUnit3/TestFilterDefinitions.xsd'
'schemas/NUnit3/TestResult.xsd'
)
18 changes: 1 addition & 17 deletions publish/release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,7 @@ if ((Get-Item $bin/Pester.psm1).Length -lt 50KB) {

& "$PSScriptRoot/signModule.ps1" -VaultUrl $VaultUrl -TenantId $TenantId -CertificateName $CertificateName -Path $bin

$files = @(
'Pester.ps1'
'Pester.psd1'
'Pester.psm1'
'Pester.Format.ps1xml'
'PesterConfiguration.Format.ps1xml'
'bin/net462/Pester.dll'
'bin/net6.0/Pester.dll'
'en-US/about_Pester.help.txt'
'en-US/about_PesterConfiguration.help.txt'
'schemas/JaCoCo/report.dtd'
'schemas/JUnit4/junit_schema_4.xsd'
'schemas/NUnit25/nunit_schema_2.5.xsd'
'schemas/NUnit3/TestDefinitions.xsd'
'schemas/NUnit3/TestFilterDefinitions.xsd'
'schemas/NUnit3/TestResult.xsd'
)
$files = . "$PSScriptRoot/filesToPublish.ps1"

$notFound = @()
foreach ($f in $files) {
Expand Down

0 comments on commit 2a75fdf

Please sign in to comment.