CI: Package Interfaces as nuget package
Some checks failed
release-nuget-package / Release NuGet Package (push) Failing after 27s

This commit is contained in:
2026-02-13 19:41:57 +01:00
parent 491838491a
commit a8f46089c4
3 changed files with 39 additions and 1 deletions

View File

@@ -11,5 +11,6 @@
<Exec Condition="'$(OS)' != 'Windows_NT' And '$(Configuration)' == 'Debug'" Command="bash $(ProjectDir)debug.sh $(TargetFramework) $([System.String]::Copy('$(MSBuildProjectName)').Replace('.Package',''))" />
<Exec Condition="'$(OS)' == 'Windows_NT' And '$(Configuration)' == 'Release'" Command="release.cmd $(TargetFramework) $([System.String]::Copy('$(MSBuildProjectName)').Replace('.Package',''))" />
<Exec Condition="'$(OS)' != 'Windows_NT' And '$(Configuration)' == 'Release'" Command="bash $(ProjectDir)release.sh $(TargetFramework) $([System.String]::Copy('$(MSBuildProjectName)').Replace('.Package',''))" />
<Exec Condition="'$(OS)' != 'Windows_NT' And '$(Configuration)' == 'PublishNuget'" Command="bash $(ProjectDir)release.sh $(TargetFramework) $([System.String]::Copy('$(MSBuildProjectName)').Replace('.Package','')) skip-copy-to-oqtane.framework" />
</Target>
</Project>

View File

@@ -1,6 +1,12 @@
#!/bin/bash
TargetFramework=$1
ProjectName=$2
find . -name *.nupkg -delete
dotnet pack $ProjectName.nuspec "/p:targetframework=${TargetFramework};ProjectName=${ProjectName}"
cp -f *.nupkg ../../oqtane.framework/Oqtane.Server/Packages/
if [ "$#" -ne 3 ]; then
echo "Skipping copy to Oqtane.Server/Packages"
else
cp -f *.nupkg ../../oqtane.framework/Oqtane.Server/Packages/
fi