mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #3593 from joshuaboniface/nuget-publish
Add NuGet publish step to tag CI
This commit is contained in:
commit
050c6cdaa4
@ -139,3 +139,25 @@ jobs:
|
|||||||
sudo /srv/repository/collect-server.azure.sh /srv/repository/incoming/azure $(Build.BuildNumber)
|
sudo /srv/repository/collect-server.azure.sh /srv/repository/incoming/azure $(Build.BuildNumber)
|
||||||
rm $0
|
rm $0
|
||||||
exit
|
exit
|
||||||
|
|
||||||
|
- job: PublishNuget
|
||||||
|
displayName: 'Publish NuGet packages'
|
||||||
|
dependsOn:
|
||||||
|
- BuildPackage
|
||||||
|
condition: and((succeeded'BuildPackage'), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
|
||||||
|
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-latest'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- task: NuGetCommand@2
|
||||||
|
inputs:
|
||||||
|
command: 'pack'
|
||||||
|
packagesToPack: Jellyfin.Data/Jellyfin.Data.csproj;MediaBrowser.Common/MediaBrowser.Common.csproj;MediaBrowser.Controller/MediaBrowser.Controller.csproj;MediaBrowser.Model/MediaBrowser.Model.csproj;Emby.Naming/Emby.Naming.csproj
|
||||||
|
packDestination: '$(Build.ArtifactStagingDirectory)'
|
||||||
|
|
||||||
|
- task: NuGetCommand@2
|
||||||
|
inputs:
|
||||||
|
command: 'push'
|
||||||
|
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg'
|
||||||
|
includeNugetOrg: 'true'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user