Skip to content

Commit

Permalink
Fix pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Azyyyyyy committed Jan 28, 2024
1 parent 67f4619 commit f87d99b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
dotnet nuget push "packages/*.nupkg" --skip-duplicate --api-key ${{ secrets.NUGET_PUSH_KEY }} --source "github"
19 changes: 10 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -7,7 +7,7 @@ trigger:
- V2

pool:
vmImage: 'windows-latest'
name: TinyUpdate

variables:
solution: '**/*.sln'
Expand All @@ -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)'
command: 'test'
projects: '$(solution)'
arguments: '-c $(buildConfiguration)'

0 comments on commit f87d99b

Please sign in to comment.