Skip to content

Commit 3eef546

Browse files
committed
download binaries from github releases
1 parent 1c28afd commit 3eef546

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
steps:
2-
- template: /.azure-pipelines/generation-templates/use-dotnet-sdk.yml@self
3-
parameters:
4-
version: "10.x"
5-
6-
- bash: dotnet tool install Microsoft.OpenApi.Kiota --tool-path $(Build.ArtifactStagingDirectory)
7-
displayName: 'Install latest Kiota from NuGet'
2+
- bash: |
3+
LATEST_TAG=$(curl -sL -o /dev/null -w "%{url_effective}" "https://github.com/microsoft/kiota/releases/latest" | rev | cut -d'/' -f1 | rev)
4+
echo "Downloading Kiota $LATEST_TAG"
5+
curl -L "https://github.com/microsoft/kiota/releases/download/${LATEST_TAG}/linux-x64.zip" -o kiota.zip
6+
unzip kiota.zip -d $(Build.ArtifactStagingDirectory)
7+
displayName: 'Download latest Kiota from GitHub'

0 commit comments

Comments
 (0)