Skip to content

Commit

Permalink
switched to public nuget publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisthekap committed Oct 21, 2020
1 parent 33e099a commit 1ae3fe9
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<IsPackable>true</IsPackable>
<PackageId>Xamarin.RevenueCat.iOS.Extensions</PackageId>
<Description>Contains convenience methods and async extensions for Xamarin.RevenueCat.iOS</Description>
<Version>3.5.3.5</Version>
<Version>3.5.3.6</Version>
<Authors>Christian Kapplmüller</Authors>
<Company>fun.music IT GmbH</Company>
<PackageOutputPath>nugetoutput</PackageOutputPath>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ trigger:
include:
- refs/tags/release-extensions-v*

pr: none

pool:
vmImage: 'macOS-10.15'

variables:
- group: tonestro.private.artifacts
- group: nuget.org

steps:

Expand All @@ -29,29 +31,18 @@ steps:
msbuild /t:Build /p:Configuration=Release
msbuild /t:Pack /p:Configuration=Release
- task: NuGetAuthenticate@0
displayName: 'NuGet Authenticate'
- task: NuGetCommand@2
displayName: 'NuGet push'
- bash: |
dotnet nuget push Xamarin.RevenueCat.iOS.Extensions/nugetoutput/Xamarin.RevenueCat.iOS.Extensions.*.nupkg -k "$(nugetOrgApiKey)" -s https://api.nuget.org/v3/index.json
- task: GitHubRelease@1
inputs:
command: 'push'
packagesToPush: 'Xamarin.RevenueCat.iOS.Extensions/nugetoutput/Xamarin.RevenueCat.iOS.Extensions.*.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '95a4928e-7a26-4e37-a11b-e681e1d9910c'
allowPackageConflicts: true

#- bash: |
# dotnet nuget push Xamarin.RevenueCat.iOS.Extensions/nugetoutput/Xamarin.RevenueCat.iOS.Extensions.*.nupkg -k "$(azureDevOpsRepoApiKey)" -s "$(azureDevOpsRepoTargetUrl)"

#- task: GitHubRelease@1
# inputs:
# gitHubConnection: 'github.com_thisisthekap'
# repositoryName: 'thisisthekap/Xamarin.RevenueCat.iOS'
# action: 'create'
# target: '$(Build.SourceVersion)'
# tagSource: 'userSpecifiedTag'
# tag: '$(Build.SourceBranchName)'
# title: 'Xamarin.RevenueCat.iOS.Extensions $(bindingsVersion)'
# assets: 'Xamarin.RevenueCat.iOS.Extensions/nugetoutput/Xamarin.RevenueCat.iOS.Extensions.*.nupkg'
# changeLogCompareToRelease: 'lastFullRelease'
# changeLogType: 'issueBased'
gitHubConnection: 'github.com_thisisthekap'
repositoryName: 'thisisthekap/Xamarin.RevenueCat.iOS'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: '$(Build.SourceBranchName)'
title: 'Xamarin.RevenueCat.iOS.Extensions $(bindingsVersion)'
assets: 'Xamarin.RevenueCat.iOS.Extensions/nugetoutput/Xamarin.RevenueCat.iOS.Extensions.*.nupkg'
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'issueBased'
2 changes: 1 addition & 1 deletion Xamarin.RevenueCat.iOS/Xamarin.RevenueCat.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Xamarin.RevenueCat.iOS</PackageId>
<Version>3.5.3.5</Version>
<Version>3.5.3.6</Version>
<Description>Contains bindings for https://docs.revenuecat.com/docs/ios</Description>
<Authors>Christian Kapplmüller</Authors>
<Company>fun.music IT GmbH</Company>
Expand Down
43 changes: 17 additions & 26 deletions Xamarin.RevenueCat.iOS/azure-pipeline-public-nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ trigger:
include:
- refs/tags/release-bindings-v*

pr: none

pool:
vmImage: 'macOS-10.15'

variables:
- group: tonestro.private.artifacts
- group: nuget.org

steps:

Expand All @@ -29,29 +31,18 @@ steps:
msbuild /t:Build /p:Configuration=Release
msbuild /t:Pack /p:Configuration=Release
- task: NuGetAuthenticate@0
displayName: 'NuGet Authenticate'
- task: NuGetCommand@2
displayName: 'NuGet push'
- bash: |
dotnet nuget push Xamarin.RevenueCat.iOS/nugetoutput/Xamarin.RevenueCat.iOS.*.nupkg -k "$(nugetOrgApiKey)" -s https://api.nuget.org/v3/index.json
- task: GitHubRelease@1
inputs:
command: 'push'
packagesToPush: 'Xamarin.RevenueCat.iOS/nugetoutput/Xamarin.RevenueCat.iOS.*.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '95a4928e-7a26-4e37-a11b-e681e1d9910c'
allowPackageConflicts: true

#- bash: |
# dotnet nuget push Xamarin.RevenueCat.iOS/nugetoutput/Xamarin.RevenueCat.iOS.*.nupkg -k "$(azureDevOpsRepoApiKey)" -s "$(azureDevOpsRepoTargetUrl)"

#- task: GitHubRelease@1
# inputs:
# gitHubConnection: 'github.com_thisisthekap'
# repositoryName: 'thisisthekap/Xamarin.RevenueCat.iOS'
# action: 'create'
# target: '$(Build.SourceVersion)'
# tagSource: 'userSpecifiedTag'
# tag: '$(Build.SourceBranchName)'
# title: 'Xamarin.RevenueCat.iOS Bindings $(bindingsVersion)'
# assets: 'Xamarin.RevenueCat.iOS/nugetoutput/Xamarin.RevenueCat.iOS.*.nupkg'
# changeLogCompareToRelease: 'lastFullRelease'
# changeLogType: 'issueBased'
gitHubConnection: 'github.com_thisisthekap'
repositoryName: 'thisisthekap/Xamarin.RevenueCat.iOS'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: '$(Build.SourceBranchName)'
title: 'Xamarin.RevenueCat.iOS Bindings $(bindingsVersion)'
assets: 'Xamarin.RevenueCat.iOS/nugetoutput/Xamarin.RevenueCat.iOS.*.nupkg'
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'issueBased'

0 comments on commit 1ae3fe9

Please sign in to comment.