move nightly builds to separate package id

while nightly builds are useful they also cause
a large amount of spam on the main project
nuget. here we try to change the package id
so that it will be hosted as a separate package
while having all the same code and namespaces
this means people can opt into the nightly builds
while keeping the version history of the released
package tidy.

no idea if this will work because actions and
yaml is my idea of hell and is impossible to
debug, but let's give it a go
This commit is contained in:
Eliot Jones
2023-06-05 21:48:02 +01:00
parent 2be4c69c16
commit 2366d22719
2 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
param (
)
$root = (Split-Path -parent $PSCommandPath)
$packageProjectPath = "$root/UglyToad.PdfPig.Package/UglyToad.PdfPig.Package.csproj"
$xml = New-Object XML
$xml.Load($packageProjectPath)
$xml.Project.PropertyGroup[0].PackageId = "PdfPig.Nightly"
$xml.Project.PropertyGroup[0].Title = "PdfPig.Nightly"
$xml.Project.PropertyGroup[0].Product = "PdfPig.Nightly"
$xml.Save($packageProjectPath)