Build in a release configuration before packaging.

This commit is contained in:
Adam Becker 2018-11-08 20:13:32 -07:00 committed by Ethan Lee
parent 93acf5457b
commit 3819b959b6
5 changed files with 4 additions and 10 deletions

View file

@ -2,7 +2,7 @@
<package > <package >
<metadata> <metadata>
<id>SDL2-CS-Rolling</id> <id>SDL2-CS-Rolling</id>
<version>%version%</version> <version>2000.1.1</version>
<authors>flibitijibibo</authors> <authors>flibitijibibo</authors>
<owners>beannaich</owners> <owners>beannaich</owners>
<licenseUrl>https://github.com/flibitijibibo/SDL2-CS/blob/master/LICENSE</licenseUrl> <licenseUrl>https://github.com/flibitijibibo/SDL2-CS/blob/master/LICENSE</licenseUrl>

View file

@ -1,4 +1,3 @@
#!/bin/bash #!/bin/bash
msbuild /p:Configuration=Debug SDL2-CS.csproj msbuild /p:Configuration=Release SDL2-CS.csproj

View file

@ -1,4 +1,3 @@
#!/bin/bash #!/bin/bash
dotnet build SDL2-CS.Core.csproj dotnet build -c Release SDL2-CS.Core.csproj

View file

@ -7,4 +7,3 @@ nuget setApiKey $NUGET_API_KEY -verbosity quiet
for package in `find *.nupkg`; do for package in `find *.nupkg`; do
nuget push $package -source https://nuget.org/ nuget push $package -source https://nuget.org/
done done

View file

@ -6,7 +6,4 @@ version=`date +"%Y.%m.%d"`
nuspec="gitlab-ci/SDL2-CS.nuspec" nuspec="gitlab-ci/SDL2-CS.nuspec"
sed -i -e "s/%version%/$version/g" $nuspec nuget pack $nuspec -Version $version
nuget pack $nuspec