ci: publish metapackage
This commit is contained in:
@@ -4,12 +4,10 @@ steps:
|
||||
|
||||
- script: dotnet build "Discord.Net.sln" --no-restore -v minimal -c $(buildConfiguration) /p:BuildNumber=$(buildNumber) /p:IsTagBuild=$(buildTag)
|
||||
displayName: Build projects
|
||||
condition: succeeded()
|
||||
|
||||
- script: dotnet test "test/Discord.Net.Tests/Discord.Net.Tests.csproj" --no-restore --no-build -v minimal -c $(buildConfiguration) --logger trx
|
||||
# TODO: update this to support multiple tests
|
||||
displayName: Test projects
|
||||
condition: succeeded()
|
||||
|
||||
- task: PublishTestResults@2
|
||||
displayName: Publish test results
|
||||
|
||||
@@ -9,7 +9,13 @@ steps:
|
||||
dotnet pack "src\Discord.Net.Analyzers\Discord.Net.Analyzers.csproj" --no-restore --no-build -v minimal -c $(buildConfiguration) -o "../../artifacts/" /p:BuildNumber=$(buildNumber) /p:IsTagBuild=$(buildTag)
|
||||
displayName: Pack projects
|
||||
|
||||
# TODO: build nuspec
|
||||
- script: nuget pack src/Discord.Net/Discord.Net.nuspec -OutputDirectory "artifacts" -properties suffix=""
|
||||
displayName: Pack metapackage (release mode)
|
||||
condition: eq(variables['buildTag'], True)
|
||||
|
||||
- script: nuget pack src/Discord.Net/Discord.Net.nuspec -OutputDirectory "artifacts" -properties suffix="-$(buildNumber)"
|
||||
displayName: Pack metapackage
|
||||
condition: eq(variables['buildTag'], False)
|
||||
|
||||
- task: NuGetCommand@2
|
||||
displayName: Push to NuGet
|
||||
|
||||
Reference in New Issue
Block a user