From 6ff1c2c4ccecdbd299abd2ef88f81855ee27b142 Mon Sep 17 00:00:00 2001 From: kerenr-jfrog Date: Mon, 16 Sep 2024 12:21:37 +0300 Subject: [PATCH] add script for downloading jfrog-cli --- .github/workflows/tests.yml | 10 +++------- JFrogVSExtension/Resources/download-jfrog-cli.ps1 | 13 +++++++++++++ 2 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 JFrogVSExtension/Resources/download-jfrog-cli.ps1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a465e56..830dab3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,9 +8,6 @@ on: jobs: build: runs-on: windows-latest - - env: - JFROG_CLI_VERSION: '2.67.0' steps: - name: Checkout code @@ -41,10 +38,9 @@ jobs: nuget restore - name: Download JFrog CLI executable - uses: jfrog/setup-jfrog-cli@v4 - with: - version: ${{ env.JFROG_CLI_VERSION }} - + run: | + .\JFrogVSExtension\Resources\download-jfrog-cli.ps1 + shell: pwsh - name: Build VSIX Project # build the vsix project using multi-core compilation and parallel builds diff --git a/JFrogVSExtension/Resources/download-jfrog-cli.ps1 b/JFrogVSExtension/Resources/download-jfrog-cli.ps1 new file mode 100644 index 0000000..e587e5c --- /dev/null +++ b/JFrogVSExtension/Resources/download-jfrog-cli.ps1 @@ -0,0 +1,13 @@ +$env:JFROG_CLI_VERSION = "2.67.0" + +# Define the URL for the JFrog CLI executable +$jfrogCliUrl = "https://releases.jfrog.io/artifactory/jfrog-cli-windows-amd64/jfrog-cli/jfrog-cli-${JFROG_CLI_VERSION}/jfrog.exe" + +# Define the destination path for the downloaded file +$destinationPath = ".\JFrogVSExtension\Resources\" + +# Download the JFrog CLI executable +Invoke-WebRequest -Uri $jfrogCliUrl -OutFile $destinationPath + +# Output the path of the downloaded file +Write-Output "JFrog CLI downloaded to: $destinationPath"