Skip to content

Publish to VS Marketplace #15

Publish to VS Marketplace

Publish to VS Marketplace #15

Workflow file for this run

name: Publish to VS Marketplace
on:
workflow_dispatch:
jobs:
publish:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 1. Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GH_SECRET}}
workflow: release_build_and_deploy.yml
workflow_conclusion: success
- name: 2. Parse Artifact Manifest
id: artifact_manifest
uses: ActionsTools/read-json-action@main
with:
file_path: ./artifact/CodingWithCalvin.OpenBinFolder.info
- name: 3. Publish Release to Marketplace
uses: CodingWithCalvin/GHA-VSMarketplacePublisher@v1
with:
marketplace-pat: ${{ secrets.VS_PAT }}
publish-manifest-path: ./src/extension.manifest.json
vsix-path: ./artifact/CodingWithCalvin.OpenBinFolder.vsix
- name: 4. Create Tag & Release
uses: ncipollo/[email protected]
with:
artifacts: ./artifact/CodingWithCalvin.OpenBinFolder.vsix
generateReleaseNotes: true
makeLatest: true
token: ${{secrets.GH_SECRET}}
commit: ${{ steps.artifact_manifest.outputs.sha }}
tag: "v${{steps.artifact_manifest.outputs.version }}"
- name: 1. Download artifact
id: download-artifact

Check failure on line 50 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish to VS Marketplace

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 50, Col: 13): The identifier 'download-artifact' may not be used more than once within the same scope.
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GH_SECRET}}
workflow: release_build_and_deploy.yml
workflow_conclusion: success
- name: 2. Publish Release to Marketplace
uses: CodingWithCalvin/GHA-VSMarketplacePublisher@v1
with:
marketplace-pat: ${{ secrets.VS_PAT }}
publish-manifest-path: ./src/extension.manifest.json
vsix-path: ./artifact/CodingWithCalvin.OpenBinFolder.Vsix.vsix
- name: 3. Create Release
uses: ncipollo/[email protected]
with:
artifacts: ./artifact/CodingWithCalvin.OpenBinFolder.Vsix.vsix
generateReleaseNotes: true
makeLatest: true
token: ${{secrets.GH_SECRET}}