diff --git a/publish/filesToPublish.ps1 b/publish/filesToPublish.ps1 new file mode 100644 index 000000000..6ae35efc8 --- /dev/null +++ b/publish/filesToPublish.ps1 @@ -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' +) diff --git a/publish/release.ps1 b/publish/release.ps1 index 5a1e6837c..b56fb17cd 100644 --- a/publish/release.ps1 +++ b/publish/release.ps1 @@ -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) {