Skip to content

Commit

Permalink
add script for downloading jfrog-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
kerenr-jfrog committed Sep 16, 2024
1 parent 0f19e49 commit 6ff1c2c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
jobs:
build:
runs-on: windows-latest

env:
JFROG_CLI_VERSION: '2.67.0'

steps:
- name: Checkout code
Expand Down Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions JFrogVSExtension/Resources/download-jfrog-cli.ps1
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 6ff1c2c

Please sign in to comment.