diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 63fbbdb..31e1654 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -35,4 +35,4 @@ jobs: run: | dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Azyyyyyy/index.json" dotnet pack --output packages - dotnet nuget push "packages/*.nupkg" --api-key ${{ secrets.NUGET_PUSH_KEY }} --source "github" \ No newline at end of file + dotnet nuget push "packages/*.nupkg" --skip-duplicate --api-key ${{ secrets.NUGET_PUSH_KEY }} --source "github" \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cf8b13a..a71fae8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,4 +1,4 @@ -# .NET Desktop +# .NET Desktop # Build and run tests for .NET Desktop or Windows classic desktop solutions. # Add steps that publish symbols, save build artifacts, and more: # https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net @@ -7,7 +7,7 @@ trigger: - V2 pool: - vmImage: 'windows-latest' + name: TinyUpdate variables: solution: '**/*.sln' @@ -21,13 +21,14 @@ steps: inputs: restoreSolution: '$(solution)' - - task: VSBuild@1 + - task: DotNetCoreCLI@2 inputs: - solution: '$(solution)' - platform: '$(buildPlatform)' - configuration: '$(buildConfiguration)' + command: 'build' + projects: '$(solution)' + arguments: '-c $(buildConfiguration)' - - task: VSTest@2 + - task: DotNetCoreCLI@2 inputs: - platform: '$(buildPlatform)' - configuration: '$(buildConfiguration)' \ No newline at end of file + command: 'test' + projects: '$(solution)' + arguments: '-c $(buildConfiguration)' \ No newline at end of file