Skip to content

Commit 425f2db

Browse files
authored
finalize Azure Artifact build in pipeline (#779)
switch to DigitalRuby feed moved company and product to csproj from assemblyinfo.cs changed csproj to version-prefix use nupkg generated in build task, so no longer need pack task use indirect variable for date bc Azure yaml doesn't support variable nesting * finalize Azure Artifact build in pipeline * try fixing date format * missing quote and spacing * try without conversion * try parens instead of square * try indirect variable * skip pack step * set build output dir * set dir with arguments instead of inputs * move end quote
1 parent 95452eb commit 425f2db

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

azure-pipelines.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ schedules:
3535
variables:
3636
BuildConfiguration: 'Release'
3737
DOTNET_CLI_TELEMETRY_OPTOUT: 1
38+
PipelineDate: $[format('{0:yyyyMMddHHmmss}', pipeline.startTime)]
3839

3940
jobs:
4041
- job: build_ci
@@ -52,14 +53,14 @@ jobs:
5253
- task: DotNetCoreCLI@2
5354
displayName: 'Restore'
5455
inputs:
55-
command: 'restore'
56-
projects: 'src/ExchangeSharp/ExchangeSharp.csproj'
56+
command: 'restore'
57+
projects: 'src/ExchangeSharp/ExchangeSharp.csproj'
5758
- task: DotNetCoreCLI@2
5859
displayName: 'Build lib+console'
5960
inputs:
6061
command: 'build'
6162
projects: 'src/ExchangeSharp/ExchangeSharp.csproj'
62-
arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$(Date:yyyyMMddHHmmss)'
63+
arguments: '--configuration $(BuildConfiguration) --version-suffix prerelease-$(PipelineDate) --output $(Build.ArtifactStagingDirectory)'
6364
#- task: DotNetCoreCLI@2
6465
# displayName: 'Tests'
6566
# inputs:
@@ -68,22 +69,21 @@ jobs:
6869
# projects: 'tests/*/*.csproj'
6970
# publishTestResults: true
7071
# testRunTitle: 'All tests'
71-
- task: DotNetCoreCLI@2
72-
displayName: 'NuGet Pack'
73-
inputs:
74-
command: pack
75-
packagesToPack: 'src/ExchangeSharp/ExchangeSharp.csproj'
76-
packDestination: '$(Build.ArtifactStagingDirectory)'
77-
versioningScheme: off
72+
#- task: DotNetCoreCLI@2
73+
# displayName: 'NuGet Pack'
74+
# inputs:
75+
# command: pack
76+
# packagesToPack: 'src/ExchangeSharp/ExchangeSharp.csproj'
77+
# packDestination: '$(Build.ArtifactStagingDirectory)'
78+
# versioningScheme: off
7879
- task: NuGetToolInstaller@1
7980
- task: NuGetAuthenticate@0
8081
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
8282
- task: NuGetCommand@2
8383
displayName: 'NuGet push'
8484
inputs:
8585
command: push
86-
publishVstsFeed: DigitalRuby/DigitalRubyFeed
86+
publishVstsFeed: DigitalRuby/DigitalRuby
8787
- job: build_tag
8888
displayName: Build console app
8989
timeoutInMinutes: 5

src/ExchangeSharp/ExchangeSharp.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@
88
<LangVersion>8</LangVersion>
99
<PackageId>DigitalRuby.ExchangeSharp</PackageId>
1010
<Title>ExchangeSharp - C# API for cryptocurrency exchanges</Title>
11-
<PackageVersion>1.0.2</PackageVersion>
12-
<Authors>jjxtra</Authors>
11+
<VersionPrefix>1.0.2</VersionPrefix>
12+
<Authors>jjxtra</Authors>
1313
<Description>ExchangeSharp is a C# API for working with various cryptocurrency exchanges. Web sockets are also supported for some exchanges.</Description>
1414
<Summary>Supported exchanges: Binance BitMEX Bitfinex Bithumb Bitstamp Bittrex BL3P Bleutrade BTSE Cryptopia Coinbase(GDAX) Digifinex Gemini Gitbtc Huobi Kraken Kucoin Livecoin NDAX OKCoin OKEx Poloniex TuxExchange Yobit ZBcom. Pull requests welcome.</Summary>
1515
<PackageIcon>icon.png</PackageIcon>
1616
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
1717
<PackageProjectUrl>https://github.com/DigitalRuby/ExchangeSharp</PackageProjectUrl>
1818
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1919
<PackageReleaseNotes>https://github.com/DigitalRuby/ExchangeSharp/releases</PackageReleaseNotes>
20+
<Company>Digital Ruby, LLC</Company>
21+
<Product>IPBan</Product>
2022
<PackageReadmeFile>README.md</PackageReadmeFile>
2123
<PackageTags>C# crypto cryptocurrency trade trader exchange sharp socket web socket websocket signalr secure API Binance BitMEX Bitfinex Bithumb Bitstamp Bittrex BL3P Bleutrade BTSE Cryptopia Coinbase GDAX Digifinex Gemini Gitbtc Huobi Kraken Kucoin Livecoin NDAX OKCoin OKEx Poloniex TuxExchange Yobit ZBcom</PackageTags>
2224
<RepositoryUrl>https://github.com/DigitalRuby/ExchangeSharp</RepositoryUrl>

0 commit comments

Comments
 (0)