Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ steps:
SourceFolder: '$(System.DefaultWorkingDirectory)'
Contents: 'CHANGELOG.md'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
condition: and( succeeded(), not( startsWith(variables['Build.SourceBranch'], 'refs/pull') ) )
condition: and( succeeded(), not( startsWith(variables['Build.SourceBranch'], 'refs/pull') ), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) )
displayName: Copy Changelog

# push new changelog to GitHub repo
Expand Down Expand Up @@ -185,15 +185,15 @@ steps:
condition: succeeded()
displayName: Push NuGet packages to MyGet

# # push NuGet class lib package to NuGet (happens on tag builds for any branch)
# - task: NuGetCommand@2
# inputs:
# command: push
# nuGetFeedType: external
# packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
# publishFeedCredentials: 'NuGet'
# condition: and( succeeded(), not( startsWith(variables['Build.SourceBranch'], 'refs/pull') ), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') )
# displayName: Push NuGet packages to NuGet
# push NuGet class lib package to NuGet (happens on tag builds for any branch)
- task: NuGetCommand@2
inputs:
command: push
nuGetFeedType: external
packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
publishFeedCredentials: 'NuGet'
condition: and( succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') )
displayName: Push NuGet packages to NuGet

# create or update GitHub release
- task: GitHubReleasePublish@1
Expand Down Expand Up @@ -233,12 +233,16 @@ steps:
condition: and( succeeded(), not( startsWith(variables['Build.SourceBranch'], 'refs/pull') ), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') )
displayName: Create/Update GitHub release

# step from template @ nf-tools repo
# update assembly declaration in nf-interpreter
- template: azure-pipelines-templates/update-assembly-declarations.yml@templates
parameters:
sourceFile: 'nf_networking_sntp.cpp'
- task: UpdateNativeAssemblyDeclaration@1
inputs:
sourceFileName: 'nf_networking_sntp.cpp'
classLibName: $(nugetPackageName)
gitHubToken: $(GitHubToken)
nuGetVersion: $(MY_NUGET_VERSION)
assemblyVersion: $(NBGV_Version)
condition: and( succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') )
displayName: Update assembly declaration in nf-interpreter

# step from template @ nf-tools repo
- template: azure-pipelines-templates/discord-webhook-task.yml@templates
Expand Down