Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kerenr-jfrog authored Nov 12, 2024
1 parent a60b75a commit 06def71
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,32 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: master

- name: Merge dev into master
run: |
git pull origin master
git fetch --all
git merge origin/dev
ref: dev
fetch-depth: 0

- name: Update VSIX Version in manifest file
run: .\scripts\UpdateVsixVersion.ps1
shell: pwsh


- name: Commit and push changes
- name: Commit changes
run: |
git add .
git commit -m "Updated VSIX version to ${{ env.NEW_VERSION }}"
git push
- name: Merge dev into master
run: |
git checkout master
git pull origin master
git merge origin/dev
git push
call-build-workflow:
# build and package the vsix project
uses: ./.github/workflows/build-vsix.yml
with:
ref: ${{ github.event.release.target_commitish }}
ref: master
needs: pre-build

release:
Expand All @@ -69,13 +72,10 @@ jobs:

# upload the vsix and manifest files to Visual Studio Marketplace using VsixPublisher
- name: Publish to Visual Studio Marketplace
env:
# vsix publisher executable is already installed in the github windows runner at the following path
VSIX_PUBLISHER_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VSSDK/VisualStudioIntegration/Tools/Bin/VsixPublisher.exe"
VSIX_PATH: "./JFrogVSExtension/bin/Release/JFrogVSExtension.vsix"
PUBLISH_MANIFEST_PATH: "./JFrogVSExtension/PublishManifest.json"
# vsix publisher executable is already installed in the github windows runner at the following path
run: |
$Env:VSIX_PUBLISHER_PATH publish `
-payload $Env:VSIX_PATH `
-publishManifest $Env:PUBLISH_MANIFEST_PATH `
-personalAccessToken ${{ secrets.VS_MARKETPLACE_PAT }}
$VSIX_PUBLISHER_PATH = "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VSSDK/VisualStudioIntegration/Tools/Bin/VsixPublisher.exe"
$VSIX_PATH = "./JFrogVSExtension/bin/Release/JFrogVSExtension.vsix"
$PUBLISH_MANIFEST_PATH = "./JFrogVSExtension/PublishManifest.json"
& $VSIX_PUBLISHER_PATH publish -payload $VSIX_PATH -publishManifest $PUBLISH_MANIFEST_PATH -personalAccessToken ${{ secrets.VS_MARKETPLACE_PAT }}
shell: pwsh

0 comments on commit 06def71

Please sign in to comment.