From 9247986159c3291a8ec2c332a91dc2822ee00030 Mon Sep 17 00:00:00 2001 From: AntonioSeric Date: Mon, 21 Jun 2021 11:19:17 +0200 Subject: [PATCH] store variable to artifacts --- azure-pipelines.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0510b1d..fcb5709 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,6 +33,14 @@ jobs: solution: '**/CalendarPlugin.csproj' msbuildArguments: '/p:Version=$(nugetVersion)' configuration: '$(BuildConfiguration)' + - task: Bash@3 + inputs: + targetType: 'inline' + script: | + OUTPUT_PATH=src/Calendar.Plugin/bin/Release + + echo "$(nugetVersion)" > $OUTPUT_PATH/NUGET_VERSION + echo "$(Build.SourceVersion)" > $OUTPUT_PATH/SOURCE_VERSION - task: PublishBuildArtifacts@1 displayName: 'Publish Artifact: nupkg'