From 2a75fdf39973c893851b5194d3d11684369feb23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Jare=C5=A1?= Date: Wed, 10 Jul 2024 21:12:24 +0200 Subject: [PATCH] Extract files to publish from release script --- publish/filesToPublish.ps1 | 17 +++++++++++++++++ publish/release.ps1 | 18 +----------------- 2 files changed, 18 insertions(+), 17 deletions(-) create mode 100644 publish/filesToPublish.ps1 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) {