Skip to content

Commit fb939fe

Browse files
authored
try push to Azure Artifacts feed (DigitalRuby#777)
fix indenting in Azure Pipeline (yaml...) updated to .net core 6.0 updated to ubuntu-latest add prerelease suffix push to Azure Artifacts feed * fix indenting in Azure Pipeline - yaml... * update initial ubuntu to latest * update .net core version * add restore step * target just the main ES library * fixed missing space in indent * additional spaces * finally valid yaml * change versioning scheme * try version suffix argument * correct date expression - Azure, not GH * add back pack w/o versioning * try without version-suffix * pass configuration via argument, and add back version-suffix * change project name to DigitalRuby * add internal nuGetFeedType * try w/o project name * try external * try manual nuget script * try w/o nuget.config * try testfeed * try installing nuget * try unquoted * try switching back to DR feed * try with DigitalRubyFeed
1 parent af1df17 commit fb939fe

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

azure-pipelines.yml

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,24 @@ jobs:
4242
timeoutInMinutes: 2
4343
continueOnError: false
4444
pool:
45-
vmImage: ubuntu-18.04
45+
vmImage: ubuntu-latest
4646
steps:
47+
- task: UseDotNet@2
48+
displayName: 'Install current .NET Core SDK'
49+
inputs:
50+
packageType: sdk
51+
version: 6.x
52+
- task: DotNetCoreCLI@2
53+
displayName: 'Restore'
54+
inputs:
55+
command: 'restore'
56+
projects: 'src/ExchangeSharp/ExchangeSharp.csproj'
4757
- task: DotNetCoreCLI@2
4858
displayName: 'Build lib+console'
4959
inputs:
5060
command: 'build'
51-
configuration: $(BuildConfiguration)
52-
projects: 'src/ExchangeSharpConsole/ExchangeSharpConsole.csproj'
61+
projects: 'src/ExchangeSharp/ExchangeSharp.csproj'
62+
arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$(Date:yyyyMMddHHmmss)'
5363
#- task: DotNetCoreCLI@2
5464
# displayName: 'Tests'
5565
# inputs:
@@ -62,20 +72,18 @@ jobs:
6272
displayName: 'NuGet Pack'
6373
inputs:
6474
command: pack
65-
packagesToPack: '**/*.csproj'
75+
packagesToPack: 'src/ExchangeSharp/ExchangeSharp.csproj'
6676
packDestination: '$(Build.ArtifactStagingDirectory)'
67-
versioningScheme: byPrereleaseNumber
68-
majorVersion: '$(Major)'
69-
minorVersion: '$(Minor)'
70-
patchVersion: '$(Patch)'
71-
- task: NuGetAuthenticate@0
72-
displayName: 'NuGet Authenticate'
73-
- task: NuGetCommand@2
74-
displayName: 'NuGet push'
75-
inputs:
76-
command: push
77-
publishVstsFeed: 'PublicProject/DigitalRuby'
78-
allowPackageConflicts: true
77+
versioningScheme: off
78+
- task: NuGetToolInstaller@1
79+
- task: NuGetAuthenticate@0
80+
displayName: 'NuGet Authenticate'
81+
#- script: nuget push $(Build.ArtifactStagingDirectory)/*.nupkg -NonInteractive -Source https://pkgs.dev.azure.com/DigitalRuby/DigitalRuby/_packaging/DigitalRuby/nuget/v3/index.json -ApiKey AzureArtifacts -Verbosity Detailed
82+
- task: NuGetCommand@2
83+
displayName: 'NuGet push'
84+
inputs:
85+
command: push
86+
publishVstsFeed: DigitalRuby/DigitalRubyFeed
7987
- job: build_tag
8088
displayName: Build console app
8189
timeoutInMinutes: 5

src/ExchangeSharp/nuget.config

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)