Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
leastprivilege committed Jun 18, 2020
1 parent 99289da commit 1889789
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
trigger:
- master
- main
- features/*

jobs:
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
packagesToPush: 'nuget/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: 'MyGet'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
- task: NuGetCommand@2
displayName: 'Push to AzureArtifacts'
inputs:
Expand All @@ -48,12 +48,12 @@ jobs:
nuGetFeedType: 'internal'
publishVstsFeed: 'e845e192-3505-4ec1-8b52-7e11e77d5e2a/e94fc75b-9e25-43e7-bfbc-f0af758115c1'
allowPackageConflicts: true
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
- task: NuGetCommand@2
displayName: 'Push to GitHub packages'
inputs:
command: push
packagesToPush: 'nuget/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: 'GitHub Packages'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))

0 comments on commit 1889789

Please sign in to comment.