Skip to content

Commit

Permalink
chore: dont publish to 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawkyZ committed Sep 4, 2024
1 parent eec1884 commit ce47d96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 30 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ jobs:
with:
version: ${{ steps.vsix_version.outputs.next-tag }}
vsix-manifest-file: .\Snyk.VisualStudio.Extension\source.extension.vsixmanifest
- name: Set VSIX version for 2022
uses: cezarypiatek/[email protected]
with:
version: ${{ steps.vsix_version.outputs.next-tag }}
vsix-manifest-file: .\Snyk.VisualStudio.Extension.2022\source.extension.vsixmanifest
- name: Check if secrets exist
env:
Secret: ${{ secrets.SNYK_CODE_API_ENDPOINT_URL }}
Expand Down
29 changes: 4 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,14 @@ on:

env:
SOLUTION_FILE_PATH: .
DEFAULT_BRANCH: main
DEFAULT_BRANCH: legacy-vs-extension

jobs:
build-project:
uses: snyk/snyk-visual-studio-plugin/.github/workflows/build-project.yml@main
uses: snyk/snyk-visual-studio-plugin/.github/workflows/build-project.yml@legacy-vs-extension
with:
solution-file-path: .
secrets: inherit
run-integration-tests:
needs: build-project
uses: snyk/snyk-visual-studio-plugin/.github/workflows/integration-tests.yml@main
secrets: inherit
run-unit-tests:
needs: build-project
name: Run Unit-Tests
Expand All @@ -41,7 +37,7 @@ jobs:
- name: Tests
run: vstest.console.exe **\*.Tests.dll /TestCaseFilter:"FullyQualifiedName!=Xunit.Instances.VisualStudio&integration!=true" #exclude integration tests and the psuedo-tests that launch a VS instance
release:
needs: [build-project, run-integration-tests, run-unit-tests]
needs: [build-project, run-unit-tests]
runs-on: windows-2022
defaults:
run:
Expand Down Expand Up @@ -89,26 +85,9 @@ jobs:
asset_name: Snyk_Vulnerability_Scanner-${{ needs.build-project.outputs.version }}.vsix
asset_content_type: application/zip

- name: Upload GitHub Release 2022 Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: .\Snyk.VisualStudio.Extension.2022\bin\Release\Snyk.VisualStudio.Extension.vsix
asset_name: Snyk_Vulnerability_Scanner-${{ needs.build-project.outputs.version }}-2022.vsix
asset_content_type: application/zip

- name: Publish 2015-2019 extension to Marketplace
uses: cezarypiatek/[email protected]
with:
extension-file: '.\Snyk.VisualStudio.Extension\bin\Release\Snyk.VisualStudio.Extension.vsix'
publish-manifest-file: '.\Snyk.VisualStudio.Extension\vs-publish.json'
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}

- name: Publish 2022 extension to Marketplace
uses: cezarypiatek/[email protected]
with:
extension-file: '.\Snyk.VisualStudio.Extension.2022\bin\Release\Snyk.VisualStudio.Extension.vsix'
publish-manifest-file: '.\Snyk.VisualStudio.Extension.2022\vs-publish.json'
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}

0 comments on commit ce47d96

Please sign in to comment.