Some checks failed
release-nuget-package / Release NuGet Package (push) Failing after 25s
17 lines
541 B
Bash
17 lines
541 B
Bash
#!/bin/bash
|
|
TargetFramework=$1
|
|
ProjectName=$2
|
|
Configuration=$3
|
|
|
|
echo "ENV: ${TargetFramework} ${ProjectName} ${Configuration} RN: ${ gitea.ref_name } :NR ${REF_NAME}"
|
|
|
|
|
|
find . -name *.nupkg -delete
|
|
dotnet pack $ProjectName.nuspec "/p:targetframework=${TargetFramework};ProjectName=${ProjectName};configuration=${Configuration}"
|
|
|
|
if [ $Configuration == 'PublishNuget' ]; then
|
|
echo "Skipping copy to Oqtane.Server/Packages"
|
|
else
|
|
echo "Copy to Oqtane.Server/Packages"
|
|
cp -f *.nupkg ../../oqtane.framework/Oqtane.Server/Packages/
|
|
fi |